RemoteIO in AUGraph
RemoteIO in AUGraph
- Subject: RemoteIO in AUGraph
- From: Duncan Fleming <email@hidden>
- Date: Fri, 05 Aug 2011 13:02:42 +0100
Hi everyone,
I'm pretty new to CoreAudio and am trying to decide on the simplest / best way to get audio from a microphone using the remoteIO unit into a multi channel mixer unit on iOS.
From the design patterns described in the Audio unit hosting guide for iOS it looks as if you can do this entirely in an AUGraph, setting up the RemoteIO unit to record from the microphone, and connecting it into the mixer unit without needing to use an input callback function on the RemoteIO unit and a render callback function on the mixer unit. However, from what I've understood about how an AUGraph works, it pulls data into each unit, starting from the end of the graph and working backwards.
So assuming I've understood this correctly, if the multi channel mixer is at the end of the AUGraph, it will request data from the RemoteIO unit. I also read somewhere that if there is no data available and the units are setup to work with PCM audio, that this will fill the buffer with silence, and then the next time the audio is called, hopefully audio from the microphone will have started coming though.
Where I'm struggling with this is on timings. I can imagine a case where not enough audio is present in the buffers from the RemoteIO unit to pass onto the multi channel mixer unit. To me, the solution to this seems to be to use a circular buffer on the input from the RemoteIO unit. However to do this I would need to remove the RemoteIO unit from the AUGraph, buffer the data in an input callback and read it into the multi channel mixer in a render callback function.
So I guess my question is, is it possible to record audio using Audio Units, setup in an AUGraph or will do you have to buffer the audio from the microphone manually?
Any advice would be really appreciated.
Thanks,
Duncan
_______________________________________________
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