audio unit bus
audio unit bus
- Subject: audio unit bus
- From: David Shaffer <email@hidden>
- Date: Wed, 19 Dec 2001 00:27:26 -0700
Where do I assign the bus for an AudioUnit?
I have..
auConn.sourceAudioUnit = [mixerUnit unit];
auConn.sourceOutputNumber = 0;
auConn.destInputNumber = 0;
err = AudioUnitSetProperty(
outputUnit,kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,0,&auConn,sizeof(auConn));
.. but also want to reuse the mixer for other data ..
auConn.sourceAudioUnit = [mixerUnit unit];
auConn.sourceOutputNumber = 1; // tried 1 & 0 here and in the
set-prop call to get a different bus
auConn.destInputNumber = 0;
err = AudioUnitSetProperty(
someOtherUnitThatEventuallyGoesToOutput,kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,1,&auConn,sizeof(auConn));
.. the output from the "1" bus doesn't go anywhere no matter how I
configure it. I want to be able to re-use the mixer for many sources
and drains. I was under the impression that this was possible. Maybe,
I misunderstood and have to use a bunch of mixer units.
I am also having problems getting "pan" to work with a mixer. I have
tried the deinterleaver and have tried giving the mixer data that I know
is mono. But the "pan" is not working. Are there any examples on how
to use pan with a mixer?