(WinXP, Borland C++ Free Command Line Compiler)
Ok, for the past half hour I have attempted a number of combinations of flags with PlaySound. Then I noticed I misread the part about SND_PURGE, I thought it said use this flag to play a sound file other than a wav, but what it said was, use this to clear the sound buffer of files other than a wav. So, I went scrolling through MSDN to find a play wav function (or something near that) what I found, gave me a fairly severe headache :P.
They're about ten different midiIn, ten different midiOut, and about five Midistream..... So, I guess I want to use midiOut, sooo noobishly, I went looking for midiOutPlay or midiOutStart, but none to be found. midiOpen was the most promising, but its documentation is near nothing. Theirs nooo way I could figure it out.
When I googled midiOutOpen, I got a few chineese (or japeneese?) sites, and some error sites. But still no documentation on how to play a midi file! So I went back to google *C++ +"Playing a midi file"* *C++ "Mid Files"* *C++ "Playing non-wav sounds". And a few others, I didint get much. I did find this:
This is the closest I got. It seems pritty simple, almost to simple. Sence when does MS do simple programming? So, I'm going to guess that this has the same catch as PlaySound, it cant play two at once. Thats just a guess though.Code:mciSendString("play PATH",NULL,0,NULL);
So, does this have a catch where it stops all other sounds, then plays a sound? And, what are the other parameters for? (NULL, 0, NULL arent very helpful :P) And does this have a return value?