Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

clanmidi.h

Go to the documentation of this file.
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 //Okay this is the first draft of a WIN32 CLANLIB MIDI PLAYER
00011 //It compiles on my system C++ Borland Builder 3
00012 //Things to do : Look a little clanlibish and add headers
00013 // Some cleanup MUST BE MADE for non Borland users (Read nearly all of you)
00014 // This ONLY works with DX7
00015 //I am not even sure that this code can actually play some music right now
00016 //I need to have a look at those damn string function for unicode first
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 };                                    

Generated at Wed Apr 4 19:53:59 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001