polling wavplay

  • Thread starter Thread starter johnmmcparland
  • Start date Start date
John,

I would use something like DirectX to handle the playing of the files.
You should be able to get events as to when the audio file starts and stops
playing.

Hope this helps.
 
thanks for the help, but I don't have directX available to me at
university.

i managed to solve the problem by changing the flag passed into the
playsound method, from SND_ASYNC to SND_SYNC.

the former plays in a new thread while the latter doesn't return until
it has finished playing, which is more or less what i wanted anyway.

search for PlaySound on msdn for help.
 
Back
Top