Click to See Complete Forum and Search --> : waveOutReset()?


Gyannea
March 2nd, 2003, 04:09 PM
My understanding is that the 'waveOutReset() API function stops the playing, sends a MM_WOM_DONE message and returns a value giving the status (error or not).

However, if I have

MessageBox(some stuff);
if(waveOutReset())
{
MessageBox(blah, blah);
}
MessageBox(bha2, blah2);

Only the first call to MessageBox displays something; the sound DOES stop, but the other two calls never appear. The MM_WOM_DONE message is also never posted. Does anyone understand exactly what waveOutReset() does?

What happens if nothing is playing? Is there any situation where it will be called and not return (like it's waiting for somewthing)?

Thanks for any help.

Horst
March 10th, 2003, 01:10 AM
Is there a version of waveOutReset I don't know of? As far as I know it need a handle to the selected waveout device to work properly. Did you check for that?

Hope this helped!

Horst

Gyannea
March 10th, 2003, 05:13 AM
Sorry, I put all the necessary stuff in the function, I just didn't include it in my shell code. If I didn't have any handle, the code wouldn't have compiled. It turns out I can't use these functions anyways...they are too slow loading. I will have to go to Direct Sound.