Re: AudioQueueDispose delay
Re: AudioQueueDispose delay
- Subject: Re: AudioQueueDispose delay
- From: Umut Can Genlik <email@hidden>
- Date: Wed, 22 Jul 2015 16:55:21 -0400
a. OSStatus doesnt return for a long time sometimes up to 14 seconds, so
following code doesnt enter the if condition and hangs there for 14 seconds.
err = AudioQueueDispose(queue, true);
if (err) {
b. I have tried to creating another queue but each queue needs to have a
processingtapcallback and when audio queue is not disposed and in that 14
seconds two or more audioqueue is created each queues
AudioQueueProcessingTapGetSourceAudio
tap hangs there and finally gives a SIGABRT error. I did also try release
the tap but apple doc says taps should release after audioqueue is stopped,
so can't really release the tap. Again because of tap I dont wanna use
AudioQueueDispose(queue, false) either.
c. I am streaming music from a remote source and been working on this
project for a long time, and just recently found out that only major
problem is disposing the audio, so I need to figure out a way around or
need to find the reason why this is happening.
On Wed, Jul 22, 2015 at 4:39 PM, Quincey Morris <
email@hidden> wrote:
> On Jul 22, 2015, at 06:57 , Umut Can Genlik <email@hidden> wrote:
> >
> > According to documentation
> > err = AudioQueueDispose(queue, true);
> > I use true so dispose of AudioQueue happens immediately, although it does
> > dispose queue immediately sometimes , other times it has delay 3-4
> seconds
> > up to 13 seconds on the device. err = AudioQueueStop(queue, true) has the
> > same problem as well.
>
> a. *What* doesn’t happen for 3-4 seconds? Return of the rest of the
> buffers? Playback?
>
> b. If you’re going to do something else with audio afterwards, I suppose
> you’ll create a new queue. Does it matter that the old one is hanging
> around?
>
> c. I *strongly* recommend you switch over to AVFoundation if you possibly
> can. Audio Queue Services, or whatever that framework is called, hasn’t
> really been updated since AVFoundation appeared, and it’s always been
> quirky.
>
> Unfortunately, there’ll likely be some app re-architecting to use
> AVFoundation, but I’d suggest that it’s worth the effort.
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden