• 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: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume


  • Subject: Re: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
  • From: Doug Wyatt <email@hidden>
  • Date: Thu, 9 Apr 2009 05:58:06 -0700


On Apr 8, 2009, at 23:08 , David Lavo wrote:
This works until the user presses the pause button subsequent to the interruption, and then chooses to resume play: at the first AudioQueueEnqueueBuffer call (called from my PacketsProc) after resume I get the error !act. The documentation for this error says that "the function cannot act on the audio queue because it is being asynchronously disposed of."

Where did you find this documentation? It is not correct. (That text is associated with kAudioQueueErr_DisposalPending, which is -66685).


'!act' comes from AudioServices.h, kAudioSessionNotActiveError, "The operation failed because the AudioSession is not active."

But after the interruption, this is an entirely new AQ from the one that was previously (and synchronously) dismissed.

One other note: if the pause/resume is very quick (<= 1s or 2s or so) the AudioQueueEnqueueBuffer error does not occur. It only occurs if the AQ is paused for several seconds. I am using AudioQueuePause and AudioQueueStart (w/o delay) to perform the pause and resume.

If anybody has any ideas on the cause of this error, I would much appreciate them.

Are you supposed to explicitly re-activate your AudioSession following an interruption? It seems like it. (sorry, I don't know this right now).


Doug

_______________________________________________
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: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
      • From: David Lavo <email@hidden>
References: 
 >AudioQueueEnqueueBuffer error !act after call interruption and pause/resume (From: David Lavo <email@hidden>)

  • Prev by Date: Re: Audio queues synchronization
  • Next by Date: Re: Audio queues synchronization
  • Previous by thread: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
  • Next by thread: Re: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
  • Index(es):
    • Date
    • Thread