tron@2186: /* $Id$ */ tron@2186: tron@2174: #ifndef MUSIC_NULL_H tron@2174: #define MUSIC_NULL_H tron@2174: peter1138@7170: #include "music_driver.hpp" tron@2174: peter1138@7170: class MusicDriver_Null: public MusicDriver { 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: /* virtual */ void PlaySong(const char *filename) { } peter1138@7170: peter1138@7170: /* virtual */ void StopSong() { } peter1138@7170: peter1138@7170: /* virtual */ bool IsSongPlaying() { return true; } peter1138@7170: peter1138@7170: /* virtual */ void SetVolume(byte vol) { } peter1138@7170: }; peter1138@7170: peter1138@7170: class FMusicDriver_Null: public MusicDriverFactory { 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 Music Driver"; } peter1138@7170: /* virtual */ Driver *CreateInstance() { return new MusicDriver_Null(); } peter1138@7170: }; tron@2174: Darkvater@5988: #endif /* MUSIC_NULL_H */