Re: Use AudioQueue or AudioUnits?
Re: Use AudioQueue or AudioUnits?
- Subject: Re: Use AudioQueue or AudioUnits?
- From: Chris Adamson <email@hidden>
- Date: Thu, 14 May 2015 07:37:40 -0400
Might have been me that said that about queues, and just in that they can work with encoded formats like MP3 and AAC, which is usually what you're receiving in a streaming scenario. With the tap stuff that they introduced a while back ― giving you a look at the decoded PCM right before it's played ― you kind of get the best of both worlds.
But that's for playing streams. In your case, it sounds like you're capturing, processing, and uploading. I think the recording queue might still work for you, but I don't recall if the tap works in the recording case (letting you apply effects to captured PCM before it's encoded to AAC by the queue); I think I messed with it once and ended up filing bug reports. Try it, I guess? Otherwise I guess you'd capture to audio units, do your processing there, encode to AAC with Audio Converter Services (please enjoy your time in hell), and upload.
―Chris
Sent from my iPad
> On May 14, 2015, at 5:55 AM, Mahboud Zabetian <email@hidden> wrote:
>
> Hi.
>
> I'm building a simple streaming system: I want to capture sound while doing FLAC compression on n-packets at a time and uploading to a server in real-time.
>
> I haven't used AudioQueues before, but have some experience with AudioUnits. I seem to recall reading someplace (maybe in the Adamson/Avila book) that AudioQueues are well-suited for streaming. Can someone explain to me why that is?
>
> Down the road, I do need to also eliminate silence from the data before I compress and send (silence is relative and based on background noise). Would AudioQueues also be a good choice if I'll need to access the sound data for silence detection and elimination?
>
> Thank you.
>
> -mz
> _______________________________________________
> 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
_______________________________________________
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