Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started by: Rbz on November 04, 2006
-
Here is a simple C code to play MIDI music that I have used in my entry for CC Compo - "The Graveyard".
I hope someone find it useful :)
Compile with Dev-Cpp 4.9.9.2
:cheers:
-
thanks rbraz :-) karma up!
-
OMG I never knew it was that small! Man you learn something everyday.
-
FWIW I used the same code to play the mp3 file in my demo.
mciSendString("open waveaudio pumpkin.mp3 alias mymp3");
mciSendString("play mymp3");
Fryer's demo does the same with his midi file.
Jim
-
lol if I loaded my synth code , you'd be here for days reading it...its so big it crosses multiple files.
-
Ah, didn't know it could play mp3s. There's an example program for playing midis and wavs in freebasic at:
Freebasic->Examples->windows->winmm->winmmhlp.bas