2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2005-07-23 17:16:57 +02:00
|
|
|
#ifndef SOUND_SDL_H
|
|
|
|
#define SOUND_SDL_H
|
|
|
|
|
2007-07-05 14:23:54 +02:00
|
|
|
#include "sound_driver.hpp"
|
2005-07-23 17:16:57 +02:00
|
|
|
|
2007-07-05 14:23:54 +02: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 22:31:23 +02:00
|
|
|
static const int priority = 5;
|
2007-07-05 14:23:54 +02: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 17:16:57 +02:00
|
|
|
|
2007-02-12 22:55:10 +01:00
|
|
|
#endif /* SOUND_SDL_H */
|