Assigning a callback and enabling playthru on remoteIO node
Assigning a callback and enabling playthru on remoteIO node
- Subject: Assigning a callback and enabling playthru on remoteIO node
- From: Alex Wiltschko <email@hidden>
- Date: Fri, 29 Jan 2010 02:17:19 -0500
Hello,
I'd like to both collect incoming audio data from a remoteIO node as well as play that audio through to the speaker.
The use case is plugging in an audio source into the headphone jack, and then using the iPhone as both a speaker and a visualizer.
In an AUGraph, it is very easy to enable playthru:
err = AUGraphConnectNodeInput(graph, ioNode, 1, ioNode, 0);
NSAssert(err == noErr, @"Connecting the input of RemoteIO node to its output failed");
However, if this connection is enabled, I'm unable to assign a callback to the ioNode
err = AUGraphSetNodeInputCallback (graph,
ioNode,
0,
&playbackCallbackStruct);
results in error -10861.
I assume this means that AUGraphConnectNodeInput has created a callback and is passing audio directly from bus 1 to bus 0, and a user-defined callback would interfere with this connection.
Given that there is no splitter unit on the iPhone, will I have to implement my own renderCallback and feed audio manually into the remoteIO bus 0?
Thanks,
Alex _______________________________________________
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