• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
      • From: Doug Wyatt <email@hidden>
References: 
 >[iPhone 3.1] kAudioQueueErr_QueueInvalidated handling (From: John Michael Zorko <email@hidden>)
 >Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
  • Next by Date: Re: How metering is calculated...
  • Previous by thread: Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
  • Next by thread: Re: [iPhone 3.1] kAudioQueueErr_QueueInvalidated handling
  • Index(es):
    • Date
    • Thread