Re: AudioQueueEnqueueBuffer error !act after call interruption and pause/resume
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