Re: kAudioUnitType_Mixer limit?
Re: kAudioUnitType_Mixer limit?
- Subject: Re: kAudioUnitType_Mixer limit?
- From: Marcelo Birnbach <email@hidden>
- Date: Mon, 07 Mar 2016 21:04:01 +0000
- Thread-topic: kAudioUnitType_Mixer limit?
Hi Dave,
Thanks for your response. We call that API before connecting anything to the mixer:
err = AudioUnitSetProperty(mMixer, kAudioUnitProperty_ElementCount, kAudioUnitScope_Input, 0, &numbuses, sizeof(numbuses));
if (err) {
NSLog(@"Error - initializeAUGraph - AudioUnitSetProperty - kAudioUnitProperty_ElementCount - error:%d", err);
return false;
}
We are compiling with target SDK 10.6 (I'm not sure that makes any difference but we need backward compatibility).
It's interesting you mentioned you've used it with 100 for a test and that worked. Do you happen to have that test handy so I can give it a try?
Thanks
Marcelo
From: Dave O'Neill <email@hidden>
Sent: Monday, March 7, 2016 3:43 PM
To: Marcelo Birnbach
Cc: email@hidden
Subject: Re: kAudioUnitType_Mixer limit?
For kAudioUnitSubType_MultiChannelMixer
you have to set the channel count before using any more than eight. I've used 100 for a test and it was smooth sailing.
UInt32 channelCount = 16;
AudioUnitSetProperty(mixerUnit , kAudioUnitProperty_ElementCount, kAudioUnitScope_Input, 0, &channelCount, sizeof(channelCount));
|
_______________________________________________
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