Re: AUGraphInitialize returns -10877
Re: AUGraphInitialize returns -10877
- Subject: Re: AUGraphInitialize returns -10877
- From: Samuel Benveniste <email@hidden>
- Date: Mon, 16 Apr 2012 15:24:28 +0200
Hi Patrick,
We ran into a similar problem, although in our case the nodes we were trying to connect to the mixer were samplers, and things seemed to start to break down above 8.
Anyway,if i remember correctly we solved the issue by setting the number of buses on the mixer explicitly using the following code (copied from Ixer Host sample code) :
NSLog (@"Setting mixer unit input bus count to: %u", busCount); |
result = AudioUnitSetProperty (
|
mixerUnit, |
kAudioUnitProperty_ElementCount, |
kAudioUnitScope_Input,
|
0, |
&busCount, |
sizeof (busCount)
|
); |
Hope that helps !
Samuel
On Mon, Apr 16, 2012 at 1:56 AM, patrick machielse
<email@hidden> wrote:
I'm using AUGraph to manage a 'tree' of of AudioUnits. This tree consists of 'branches' - (AUAudioFilePlayer and some effect units) bundled together by a AUMixer wich feeds a default output unit.
When the number of branches exceeds 64 (i.i. the mixer connects to 64 files) AUGraphInitialize() starts returning -10877. Xcode's documentation browser doesn't want to tell me what this error means, but Google points me to kAudioUnitErr_InvalidElement: 'Invalid Element', which doesn't help a whole lot.
Up to this point in constructing the AUGraph there has been no error returned by any API. Nodes were added, the graph was successfully opened, AudioUnits manipulated. The value 64 leads me to believe I'm running into a built-in limit -- somewhere. At this point graph contains 322 nodes/units.
Is there a limit to the # of nodes in AUGraph, or to the number of connections to the stereo mixer? The documentation suggests that AUMixer can mix down an 'arbitrary' number of inputs.
Perhaps AUGraph has a limit?
Thanks,
patrick
--
Patrick Machielse
Hieper Software
http://www.hieper.nl
email@hidden
_______________________________________________
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
_______________________________________________
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