HAL Multichannel Recording - How to simultaneously write channels to separate files?
HAL Multichannel Recording - How to simultaneously write channels to separate files?
- Subject: HAL Multichannel Recording - How to simultaneously write channels to separate files?
- From: Graeme MacDonald <email@hidden>
- Date: Fri, 8 Oct 2010 15:35:47 -0500
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