Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asynchronous waveOutWrite()

Status
Not open for further replies.

bio4ema

Programmer
Mar 13, 2005
11
AT
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top