2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef SOUND_SDL_H
|
|
|
|
#define SOUND_SDL_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "sound_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class SoundDriver_SDL: public SoundDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
|
};
|
|
|
|
|
|
|
|
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
|
|
|
|
public:
|
2007-07-07 20:31:23 +00:00
|
|
|
static const int priority = 5;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "sdl"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "SDL Sound Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new SoundDriver_SDL(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-12 21:55:10 +00:00
|
|
|
#endif /* SOUND_SDL_H */
|