summaryrefslogtreecommitdiff
path: root/src/music/libtimidity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/libtimidity.h')
-rw-r--r--src/music/libtimidity.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/music/libtimidity.h b/src/music/libtimidity.h
index df8b7de1c..2915841f7 100644
--- a/src/music/libtimidity.h
+++ b/src/music/libtimidity.h
@@ -3,8 +3,30 @@
#ifndef MUSIC_LIBTIMIDITY_H
#define MUSIC_LIBTIMIDITY_H
-#include "../hal.h"
+#include "music_driver.hpp"
-extern const HalMusicDriver _libtimidity_music_driver;
+class MusicDriver_LibTimidity: public MusicDriver {
+public:
+ /* virtual */ bool CanProbe() { return true; }
+
+ /* virtual */ const char *Start(const char * const *param);
+
+ /* virtual */ void Stop();
+
+ /* virtual */ void PlaySong(const char *filename);
+
+ /* virtual */ void StopSong();
+
+ /* virtual */ bool IsSongPlaying();
+
+ /* virtual */ void SetVolume(byte vol);
+};
+
+class FMusicDriver_LibTimidity: public MusicDriverFactory<FMusicDriver_LibTimidity> {
+public:
+ /* virtual */ const char *GetName() { return "libtimidity"; }
+ /* virtual */ const char *GetDescription() { return "LibTimidity MIDI Driver"; }
+ /* virtual */ Driver *CreateInstance() { return new MusicDriver_LibTimidity(); }
+};
#endif /* MUSIC_LIBTIMIDITY_H */