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?
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?