Recording from remoteIO on iOS
Recording from remoteIO on iOS
- Subject: Recording from remoteIO on iOS
- From: Daniel Too <email@hidden>
- Date: Thu, 07 Feb 2013 18:21:04 +1300
Hi everyone,
I've been playing with the Momu toolkit to create some music on iPhone. It uses a single Audio Unit remoteIO and a render callback to do all of the work.
I'd like to record the output to a file in addition to outputting it through the iPhone output.
At the moment, the ASBD going into the output is
Sample Rate: 22050
Format ID: lpcm
Format Flags: kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved | (24 << kLinearPCMFormatFlagsSampleFractionShift);
Bytes per Packet: 4
Frames per Packet: 1
Bytes per Frame: 4
Channels per Frame: 2
Bits per Channel: 32
I've tried lots of different ways to approach this, but I don't think I'm doing it correctly.
How can I output this to a file? Can I use a recording callback on the output of the audio unit? How do I change the format of the data into something that I can write?
Thanks
Dan.
_______________________________________________
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