PlaySound SND_NOSTOP doesn't work

G

Guest

Hi,
I am using timers and PlaySound to play several voice message sounds at
repeated intervals. I am specifying SND_NOSTOP so that if a sound is already
playing it should play to completion without being interrupted. If, when it
is time to play a new sound I can't (ie. the device is busy and PlaySound
returns False) I keep trying until I can. However I am finding that my sounds
are being immediately interrupted when it is time to play a new sound - it's
as though the SND_NOSTOP is having no effect. Bizzarely, if I add a cout call
just before the PlaySound the behaviour is correcty. Have I stumbled across
some kind of threading problem perhaps?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top