Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
- Subject: Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
- From: John Michael Zorko <email@hidden>
- Date: Tue, 02 Mar 2010 11:42:37 -0800
Doug,
> Hi,
>
> When you get this error result, it means the server terminated and your AudioQueue is effectively a zombie. You have to dispose it and create a new one.
>
> There's also a way to get notified of server deaths via AudioSession, which might be a slightly cleaner way to wipe the slate than to try to use a queue, fail, and create a new one.
>
> Doug
>
> (BTW, this is an expectable consequence of a bug you filed, 7669762.)
Oh, I know this -- I was just asking what the best strategy for shutting down the audio queue would be i.e. if simply calling AudioQueueReset() would do the trick, or if I had to do the entire stop / dispose / start thing (now I know that the answer is the later). The AudioSession server-death-notification I didn't know about, though -- will it notify me of mediaserverd hanging without me having to try to enqueue a buffer and wait for the response to find out? That would, indeed, be a lot nicer to code :-)
Regards,
John
_______________________________________________
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