hello.
i'm looking for a way to use the waveOutWrite() function asynchronously.
the problem is that after you call waveOutWrite() you need to use waveOutUnprepareHeader.
i've tried the WHDR_DONE event and WAVERR_STILLPLAYING to determine whether waveOutWrite() has finshed playing before unpreparing the header, but they both seem to work synchronously, thus blocking user interaction until waveOutWrite() has finished.
i've heard that Windows creates a thread specifially for audio playback. does anybody know how to use this thread or another way to use waveOutWrite() asynchronously ?
thanks in advance, b.
i'm looking for a way to use the waveOutWrite() function asynchronously.
the problem is that after you call waveOutWrite() you need to use waveOutUnprepareHeader.
i've tried the WHDR_DONE event and WAVERR_STILLPLAYING to determine whether waveOutWrite() has finshed playing before unpreparing the header, but they both seem to work synchronously, thus blocking user interaction until waveOutWrite() has finished.
i've heard that Windows creates a thread specifially for audio playback. does anybody know how to use this thread or another way to use waveOutWrite() asynchronously ?
thanks in advance, b.