libtimidity.h
Go to the documentation of this file.00001
00002
00005 #ifndef MUSIC_LIBTIMIDITY_H
00006 #define MUSIC_LIBTIMIDITY_H
00007
00008 #include "music_driver.hpp"
00009
00010 class MusicDriver_LibTimidity: public MusicDriver {
00011 public:
00012 const char *Start(const char * const *param);
00013
00014 void Stop();
00015
00016 void PlaySong(const char *filename);
00017
00018 void StopSong();
00019
00020 bool IsSongPlaying();
00021
00022 void SetVolume(byte vol);
00023 };
00024
00025 class FMusicDriver_LibTimidity: public MusicDriverFactory<FMusicDriver_LibTimidity> {
00026 public:
00027 static const int priority = 5;
00028 const char *GetName() { return "libtimidity"; }
00029 const char *GetDescription() { return "LibTimidity MIDI Driver"; }
00030 Driver *CreateInstance() { return new MusicDriver_LibTimidity(); }
00031 };
00032
00033 #endif