(svn r22410) -Document: some more bits ;)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the allegro sound driver. */
|
||||
class SoundDriver_Allegro: public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
@@ -24,6 +25,7 @@ public:
|
||||
/* virtual */ const char *GetName() const { return "allegro"; }
|
||||
};
|
||||
|
||||
/** Factory for the allegro sound driver. */
|
||||
class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
|
||||
public:
|
||||
static const int priority = 4;
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the null sound driver. */
|
||||
class SoundDriver_Null: public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param) { return NULL; }
|
||||
@@ -22,6 +23,7 @@ public:
|
||||
/* virtual */ const char *GetName() const { return "null"; }
|
||||
};
|
||||
|
||||
/** Factory for the null sound driver. */
|
||||
class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
|
||||
public:
|
||||
static const int priority = 1;
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the SDL sound driver. */
|
||||
class SoundDriver_SDL: public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
@@ -22,6 +23,7 @@ public:
|
||||
/* virtual */ const char *GetName() const { return "sdl"; }
|
||||
};
|
||||
|
||||
/** Factory for the SDL sound driver. */
|
||||
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
|
||||
public:
|
||||
static const int priority = 5;
|
||||
|
@@ -14,15 +14,21 @@
|
||||
|
||||
#include "../driver.h"
|
||||
|
||||
/** Base for all sound drivers. */
|
||||
class SoundDriver: public Driver {
|
||||
public:
|
||||
/* Called once every tick */
|
||||
/** Called once every tick */
|
||||
virtual void MainLoop() {}
|
||||
};
|
||||
|
||||
/** Base of the factory for the sound drivers. */
|
||||
class SoundDriverFactoryBase: public DriverFactoryBase {
|
||||
};
|
||||
|
||||
/**
|
||||
* Factory for the sound drivers.
|
||||
* @tparam T The type of the sound factory to register.
|
||||
*/
|
||||
template <class T>
|
||||
class SoundDriverFactory: public SoundDriverFactoryBase {
|
||||
public:
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the sound driver for Windows. */
|
||||
class SoundDriver_Win32: public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
@@ -22,6 +23,7 @@ public:
|
||||
/* virtual */ const char *GetName() const { return "win32"; }
|
||||
};
|
||||
|
||||
/** Factory for the sound driver for Windows. */
|
||||
class FSoundDriver_Win32: public SoundDriverFactory<FSoundDriver_Win32> {
|
||||
public:
|
||||
static const int priority = 10;
|
||||
|
Reference in New Issue
Block a user