I am making a pretty simple media player using wavein/out.
So far, everything i am working on is fine except for one thing.
I can play, pause, resume, but I can't stop it.
here is some order I am doing with.
<Play : which is running on a thread>
A. CreateThread
1. Allocate memoryBlocks of WAVEHDR
2. WaveOutOpen
3. waveOutPreparedHeader
4. waveOutWrite
<Stop>
1. waveOutPause
2. waveOutReset
3. waveOutUnprepareHeader
4. waveOutClose
5. CloseHandle(thread)
Play function works, but Stop func doesn't work.
And also i don't know that the sound is paused or stopped.
any ideas??
Thanks in advance.