Posted June 21, 200817 yr LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {switch(message) { case WM_CREATE: sndPlaySound("hello.wav", SND_FILENAME | SND_ASYNC); return 0;}I know how to stop it by sndPlaySound("", SND_FILENAME | SND_ASYNC);//sending NULL stringbut how to pause and resume it?Thanks a lot for helping me.
June 21, 200817 yr Hello alaphate,U can use this function to pause the play:MMRESULT waveOutPause( HWAVEOUT hwo );ParametershwoHandle to the waveform-audio output device.And this one to resume:MMRESULT waveOutRestart( HWAVEOUT hwo );ParametershwoHandle to the waveform-audio output device.I Hope that u can resolve this pbl now.Greetz
June 22, 200817 yr Author TheAnalyzer, I appreciate your help. I'll try to figure out how to use them Thx a lot.
Create an account or sign in to comment