MakeConnection Question
MakeConnection Question
- Subject: MakeConnection Question
- From: Mark Thomas <email@hidden>
- Date: Thu, 10 Aug 2006 08:41:28 -0700
- Organization: Coderus Ltd
Hi,
I'm slowly learning my way around using CoreAudio (got my first audio
playing but straight to default output audit), so now I'm trying to use
MakeConnection for connecting AudioUnit's together (DefaultOutput, Stereo
mixer & format Convert), so digging around the maillists and doc's I found
some like :-
conn.sourceAudioUnit = theAudioConverterUnit;
conn.sourceOutputNumber = 0;
conn.destInputNumber = 0;
AudioUnitSetProperty(theMixerUnit,
kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,
0,
&conn,
sizeof(conn));
I understand that 'sourceOutputNumber', is the output from
'sourceAudioUnit' and 'destInputNumber' is input to my theMixerUnit,
But what is the 'InElement' parameter of AudioUnitSetProperty for ? Is
that always the same as 'destInputNumber' ?
I'm also trying to work out how do you find how many input and output
channels a particular AudioUnit's have, as the I cannot see this from the
headers or doc's yet, but maybe I'm looking in the wrong place ?, so thing
the code is more like
AudioUnitSetProperty(theMixerUnit,
kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,
conn.destInputNumber,
&conn,
sizeof(conn));
Is my thinking correct ?
I understand there's an AUGraph but I'm trying to learn CoreAudio from the
basic's and building up from that.
Thanks for any help
Mark.
_______________________________________________
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