(svn r22410) -Document: some more bits ;)

This commit is contained in:
rubidium
2011-05-02 16:14:23 +00:00
parent 480c1bd9e0
commit eb2197f4c8
51 changed files with 241 additions and 39 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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:

View File

@@ -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;