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