tron@2186: /* $Id$ */ tron@2186: rubidium@10429: /** @file null_s.h Base for the sound of silence. */ rubidium@10429: tron@2171: #ifndef SOUND_NULL_H tron@2171: #define SOUND_NULL_H tron@2171: peter1138@7666: #include "sound_driver.hpp" tron@2171: peter1138@7666: class SoundDriver_Null: public SoundDriver { peter1138@7666: public: peter1138@7666: /* virtual */ const char *Start(const char * const *param) { return NULL; } peter1138@7666: peter1138@7666: /* virtual */ void Stop() { } peter1138@7666: }; peter1138@7666: peter1138@7666: class FSoundDriver_Null: public SoundDriverFactory { peter1138@7666: public: peter1138@7689: static const int priority = 0; peter1138@7666: /* virtual */ const char *GetName() { return "null"; } peter1138@7666: /* virtual */ const char *GetDescription() { return "Null Sound Driver"; } peter1138@7666: /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); } peter1138@7666: }; tron@2171: Darkvater@6314: #endif /* SOUND_NULL_H */