Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
- Subject: Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
- From: William Stewart <email@hidden>
- Date: Tue, 12 Oct 2010 18:02:54 -0700
yep, that is the right way.
On Oct 11, 2010, at 2:03 AM, Graeme MacDonald wrote:
> Guess I just needed to keep exploring. I got it to work by setting kExtAudioFileProperty_ClientDataFormat
> to the format from the input device (multichannel) and then in order to single out the desired channel
> I applied a channel map to the ext file's built in audio converter.
>
> I'm not sure if this is "the" way to do it, but it seems to do the trick. :)
>
>
> On 2010-10-08, at 3:35 PM, Graeme MacDonald wrote:
>
>> Hi, I am creating a multitrack recorder and I'm trying to figure out how to simultaneously record each device input/channel to it's own file. I have played around with Stream formats and Channel Layouts, but neither seem to address the process of providing access to each channel separately.
>>
>> In my HAL callback I currently have this simple method of writing the incoming data to a single file.
>>
>> AudioUnitRender(helper.halUnit,ioActionFlags,inTimeStamp, inBusNumber, inNumberFrames, helper.bufferList);
>> OSStatus x = ExtAudioFileWriteAsync(mix.extRef, inNumberFrames, helper.bufferList);
>>
>> I can't see how to separate the channel data. Do I manually pull it out of the AudioBufferList? Maybe I need to run it through a splitter or convertor or something? Multiple HAL's? I'm a bit stumped and feeling like some insight could help a lot. I have tried searching the mailing list but the search function isn't working very well for me.
>>
>> Thanks.
>> Graeme
>
> _______________________________________________
> 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