Re: AUGraphInitialize returns -10877
Re: AUGraphInitialize returns -10877
- Subject: Re: AUGraphInitialize returns -10877
- From: patrick machielse <email@hidden>
- Date: Mon, 16 Apr 2012 16:47:28 +0200
Op 16 apr. 2012, om 15:24 heeft Samuel Benveniste het volgende geschreven:
>> 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.
>
> 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!
That solved it :-)
Our users thank you!
p.
--
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