dmusic.h
00001
00002
00003 #ifndef MUSIC_DMUSIC_H
00004 #define MUSIC_DMUSIC_H
00005
00006 #include "music_driver.hpp"
00007
00008 class MusicDriver_DMusic: public MusicDriver {
00009 public:
00010 const char *Start(const char * const *param);
00011
00012 void Stop();
00013
00014 void PlaySong(const char *filename);
00015
00016 void StopSong();
00017
00018 bool IsSongPlaying();
00019
00020 void SetVolume(byte vol);
00021 };
00022
00023 class FMusicDriver_DMusic: public MusicDriverFactory<FMusicDriver_DMusic> {
00024 public:
00025 static const int priority = 10;
00026 const char *GetName() { return "dmusic"; }
00027 const char *GetDescription() { return "DirectMusic MIDI Driver"; }
00028 Driver *CreateInstance() { return new MusicDriver_DMusic(); }
00029 };
00030
00031 #endif