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

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