Re: AudioQueueDispose delay
Re: AudioQueueDispose delay
- Subject: Re: AudioQueueDispose delay
- From: Quincey Morris <email@hidden>
- Date: Wed, 22 Jul 2015 20:39:36 +0000
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