Re: How to capture audio generated by a render callback, iOS
Re: How to capture audio generated by a render callback, iOS
- Subject: Re: How to capture audio generated by a render callback, iOS
- From: Tim Kemp <email@hidden>
- Date: Mon, 03 Dec 2012 13:05:23 -0500
"You can call this function with 0 frames and a NULL buffer in a non-time-critical context to initialize the asynchronous mechanism. Once initialized, subsequent calls are very efficient and do not take locks. This technique may be used to write to a file from a realtime thread."
You beauty. Thanks Gregory. I'd prefer to do this outside of the AUGraph anyway.
On 3 Dec 2012, at 12:49, Gregory Wieber wrote: Perhaps this will help:
In particular, I'd check out ExtAudioFileWriteAsync. On Sun, Dec 2, 2012 at 12:51 PM, Tim Kemp <email@hidden> wrote:
Hi,
My iOS synth has an AUGraph like this:
(Render callback on bus 0 input)->MultiChannelMixer->RemoteIO
(There will be a file player unit also going in to the mixer.)
The render callback gets samples in realtime from the synth engine as the user plays. I now want to record the generated sound to disk. What's the best way to hook this up? I am writing generated samples to a ring buffer already; I just need something to take them and put them in a file. Obviously this is a low priority process, so I'm not sure that I should be doing it within the render callback. (I also don't see anywhere to add a recording AU into the AUGraph; I am targeting iOS 5.0+ so I don't have a matrix mixer, which is what I originally thought of.) Should I add a render notify to the RemoteIO unit?
Thanks,
Tim
_______________________________________________
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