qtmidi.h

00001 /* $Id: qtmidi.h 10472 2007-07-07 21:14:36Z peter1138 $ */
00002 
00003 #ifndef MUSIC_MACOSX_QUICKTIME_H
00004 #define MUSIC_MACOSX_QUICKTIME_H
00005 
00006 #include "music_driver.hpp"
00007 
00008 class MusicDriver_QtMidi: public MusicDriver {
00009 public:
00010   /* virtual */ const char *Start(const char * const *param);
00011 
00012   /* virtual */ void Stop();
00013 
00014   /* virtual */ void PlaySong(const char *filename);
00015 
00016   /* virtual */ void StopSong();
00017 
00018   /* virtual */ bool IsSongPlaying();
00019 
00020   /* virtual */ void SetVolume(byte vol);
00021 };
00022 
00023 class FMusicDriver_QtMidi: public MusicDriverFactory<FMusicDriver_QtMidi> {
00024 public:
00025   static const int priority = 10;
00026   /* virtual */ const char *GetName() { return "qt"; }
00027   /* virtual */ const char *GetDescription() { return "QuickTime MIDI Driver"; }
00028   /* virtual */ Driver *CreateInstance() { return new MusicDriver_QtMidi(); }
00029 };
00030 
00031 #endif /* MUSIC_MACOSX_QUICKTIME_H */

Generated on Wed Oct 1 17:03:21 2008 for openttd by  doxygen 1.5.6