• 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: Doug Wyatt <email@hidden>
  • Date: Tue, 2 Mar 2010 11:25:20 -0800

On Mar 2, 2010, at 11:01 , John Michael Zorko wrote:

>
> Hello, all ...
>
> Has anyone written code to handle this error condition? I'm seeing it fairly often -- 2-3 times per day perhaps. It doesn't always happen, but when it does, it's always when the app enqueues its' first buffer to the audio queue, and since trying to find the cause of why mediaserverd up and hangs (encoder? error in transmission? passing UFO? something weird happened the last time the app was run?) has proven to be maddening, i'm just going to try to handle the error in code.
>
> Would calling AudioQueueReset() be enough, or should I call AudioQueueStop() / AudioQueueDispose(), then AudioQueueNewOutput() again? If anyone has experience handling this error in code, i'd love to hear of strategies you took in doing so :-)


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.)

 _______________________________________________
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: John Michael Zorko <email@hidden>
References: 
 >[iPhone 3.1] kAudioQueueErr_QueueInvalidated handling (From: John Michael Zorko <email@hidden>)

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