alaphate Posted June 21, 2008 Posted June 21, 2008 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.
TheAnalyzer Posted June 21, 2008 Posted June 21, 2008 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
alaphate Posted June 22, 2008 Author Posted June 22, 2008 TheAnalyzer, I appreciate your help. I'll try to figure out how to use them Thx a lot.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now