• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Graeme MacDonald <email@hidden>
  • Date: Mon, 11 Oct 2010 04:03:25 -0500

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

  • Follow-Ups:
    • Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
      • From: William Stewart <email@hidden>
References: 
 >HAL Multichannel Recording - How to simultaneously write channels to separate files? (From: Graeme MacDonald <email@hidden>)

  • Prev by Date: plugin looses sync with transport
  • Next by Date: How to reset the audio system in the simulator
  • Previous by thread: HAL Multichannel Recording - How to simultaneously write channels to separate files?
  • Next by thread: Re: HAL Multichannel Recording - How to simultaneously write channels to separate files?
  • Index(es):
    • Date
    • Thread