00001
00002 #ifndef ClanMidiH
00003 #define ClanMidiH
00004
00005 #endif
00006 #include <dmusicc.h>
00007 #include <dmusici.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 class ClanMidi
00019 {
00020 private:
00021 IDirectMusicPerformance* CL_MIDIPerformance;
00022 IDirectMusicLoader* CL_MIDILoader;
00023 IDirectMusicSegment* CL_MIDISegment;
00024 IDirectMusicSegmentState* CL_MIDISegmentState;
00025 IDirectMusicPerformance* CreatePerformance();
00026 IDirectMusicLoader* CreateLoader();
00027
00028 public:
00029 ClanMidi();
00030 ~ClanMidi();
00031
00032 bool StartPlaying();
00033 bool StopPlaying();
00034 bool LoadMIDIFile(wchar_t* MIDIFileName);
00035 };