Re: Use AudioQueue or AudioUnits?
Re: Use AudioQueue or AudioUnits?
- Subject: Re: Use AudioQueue or AudioUnits?
- From: Mahboud Zabetian <email@hidden>
- Date: Thu, 14 May 2015 17:35:07 -0700
Chris,
Thank you or responding.
When you say taps, you are referring to the new AVAudioEngine taps, correct? I don’t recall taps in AudioQueue and AudioUnits.
Yes, I am streaming up to the cloud so playback is not an issue.
> 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.
Unfortunately I have to encode to FLAC, which means I’ll be using a third-party compressor. I don’t know if I will even go through Audio Converter or not. Haven’t yet selected the FLAC compressor to use.
I think this qualifies for an even worse level of hell, no?
-mz
> On May 14, 2015, at 4:37 AM, Chris Adamson <email@hidden> wrote:
>
> 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