Re: RemoteIO unit at beginning and end of an AUGraph
Re: RemoteIO unit at beginning and end of an AUGraph
- Subject: Re: RemoteIO unit at beginning and end of an AUGraph
- From: Chris Adamson <email@hidden>
- Date: Wed, 8 Apr 2009 14:02:33 -0400
OK, I've stripped down my (working) mixer code to create a pastie
(since I know pasting the code into this e-mail will make it too long
for lists.apple.com):
<http://pastie.org/440947>
What I'm trying to do, if I understand you correctly, is to set up an
AUGraph that ends with a RemoteIO node, which is connected to a
MultiChannel Mixer node (from bus 0 of mixer to bus 0 of remoteio). I
know this works, because my original code then has render callbacks on
input buses 0, 1, and 2, and these are mixed and play out just fine.
Next, I'm connecting source node RemoteIO's bus 1 to the Mixer node's
input bus 0. After opening the graph, I get the RemoteIO node and
enable input and output, and set a fairly typical ASBD (canonical
format, 16-bit ints, mono) on the RemoteIO and Mixer units.
Graphically:
[RemoteIO] --- bus 1 out / bus 0 in --> [MultiChannel Mixer] --- bus 0
out / bus 0 in ---> [RemoteIO] --- to H/W -->
I think the result should be that I hear input from my mic in my
speakers. But I don't hear anything (on simulator or a first gen
iPhone with default headset).
CAPlayThrough sets up its own callback on input to get samples and put
them in a ring buffer, for use by another render callback. I fear
that's what I need to end up doing, but I just want to understand if
what you propose here is an easier option.
Thanks again, as always.
--Chris
On Apr 6, 2009, at 2:02 PM, William Stewart wrote:
Right - so you just need to make a connection on one of your input
buses of your mixer, to the output bus, element 1, of the aurio unit
in your graph - that's your audio device input coming into your graph
That should work just fine (its how we also do this on the desktop
with AULab for instance)
_______________________________________________
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