Ah, looking back I see you posted this among other code an earlier
email. Sorry for missing it.
One thing to check: your earlier code sample includes the line
err = AUGraphInitialize(auGraph);
after you try to set the device and enable IO. I believe this must
be done before setting the device properties of the AUHAL unit.
I also notice that you were not setting the number of busses for the
Mixer. I'm not sure this matters, as it may be 1 by default, but in
my use of the mixer I include the following during setup (error
checks removed):
Part 2)
In answer to two other questions regarding setting the volume on the
mixer. Yes, I do do this. I'm using code gleaned from
MatrixMixerTest, which does:
- (void) setVolumes {
OSStatus err = AudioUnitSetParameter(mixerUnit,
kMatrixMixerParam_Enable, kAudioUnitScope_Input, 0, 1, 0);
checkErr(err);
err = AudioUnitSetParameter(mixerUnit, kMatrixMixerParam_Enable,
kAudioUnitScope_Output, 0, 1, 0);
checkErr(err);
// Set global volume
err = AudioUnitSetParameter(mixerUnit, kMatrixMixerParam_Volume,
kAudioUnitScope_Global, 0, 1, 0);
checkErr(err);
As a sidenote, here's a sample function I use to set crosspoint volumes:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden