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