2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef MUSIC_NULL_H
|
|
|
|
#define MUSIC_NULL_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "music_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class MusicDriver_Null: public MusicDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ bool CanProbe() { return false; }
|
|
|
|
|
|
|
|
/* virtual */ const char *Start(const char * const *param) { return NULL; }
|
|
|
|
|
|
|
|
/* virtual */ void Stop() { }
|
|
|
|
|
|
|
|
/* virtual */ void PlaySong(const char *filename) { }
|
|
|
|
|
|
|
|
/* virtual */ void StopSong() { }
|
|
|
|
|
|
|
|
/* virtual */ bool IsSongPlaying() { return true; }
|
|
|
|
|
|
|
|
/* virtual */ void SetVolume(byte vol) { }
|
|
|
|
};
|
|
|
|
|
|
|
|
class FMusicDriver_Null: public MusicDriverFactory<FMusicDriver_Null> {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *GetName() { return "null"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "Null Music Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new MusicDriver_Null(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-12 21:55:10 +00:00
|
|
|
#endif /* MUSIC_NULL_H */
|