On Jul 31, 10:58 pm, ravi <nos...@nospam.com>
> Can anybody tell me you to play MIDI file through a C program ?
> is it possible or not and if possible then HOW TO DECODE MIDI FILE ?
To encode/decode MIDI from/to WAVE you should write a simple
function implementing MIDI format available everywhere, i.e:
http://www.sonicspot.com/guide/midifiles.html
Check MMREG.H which supports MIDI format for various hardware :
#define MM_MIDI_MAPPER 1 /* Midi Mapper */
#define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
#define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
#define MM_MPU401_MIDIOUT 10 /* MPU 401 compatible MIDI output port
*/
#define MM_MPU401_MIDIIN 11 /* MPU 401 compatible MIDI input port
*/
#define MM_MSFT_GENERIC_MIDIIN 25 /* MS Vanilla driver MIDI in */
#define MM_MSFT_GENERIC_MIDIOUT 26 /* MS Vanilla driver MIDI
external out */
#define MM_MSFT_GENERIC_MIDISYNTH 27 /* MS Vanilla driver MIDI
synthesizer */
#define MM_WSS_SB16_MIDIIN 41 /* Sound Blaster 16 midi-in */
#define MM_WSS_SB16_MIDIOUT 42 /* Sound Blaster 16 midi out */
#define MM_WSS_SBPRO_MIDIIN 49 /* Sound Blaster Pro midi in */
#define MM_WSS_SBPRO_MIDIOUT 50 /* Sound Blaster Pro midi out */
#define MM_MSFT_SB16_MIDIIN 62 /* Sound Blaster 16 midi-in */
#define MM_MSFT_SB16_MIDIOUT 63 /* Sound Blaster 16 midi out */
#define MM_MSFT_SBPRO_MIDIIN 70 /* Sound Blaster Pro midi in */
#define MM_MSFT_SBPRO_MIDIOUT 71 /* Sound Blaster Pro midi out */
#define MM_MSFT_WDMAUDIO_MIDIOUT 102 /* Generic id for WDM Audio
drivers */
#define MM_MSFT_WDMAUDIO_MIDIIN 103 /* Generic id for WDM Audio
drivers */
.... etc ... lot of them.