AudioQueueStop() sometimes doesn't?
AudioQueueStop() sometimes doesn't?
- Subject: AudioQueueStop() sometimes doesn't?
- From: John Zorko <email@hidden>
- Date: Mon, 29 Sep 2008 14:53:41 -0700
Hello, all ...
I've made some progress, but I don't know how to solve this problem, so any insight is appreciated. What i'm seeing is that AudioQueueStop() doesn't always stop. I call it with false and wait for the IsRunning flag to be 0, but the same piece of audio loops over and over again, and I see the following errors in the log:
ERROR: decode error occurred (7) produced 2304 garbage samples ERROR: a total of 1 decode errors occurred in the last buffer ERROR: decode error occurred (3) produced 2304 garbage samples ERROR: a total of 1 decode errors occurred in the last buffer
... and so on. This sometimes (though not always) happens when I interrupt one stream to play another. My app is hung while this is happening, and after waiting (and hearing the same audio snippet played repeatedly) for 40 seconds or so, I have to terminate it in XCode. How can I address this?
Regards,
John
Falling You - exploring the beauty of voice and sound
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden