• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Initialization failure in AUGraph - I'm completely stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initialization failure in AUGraph - I'm completely stumped


  • Subject: Initialization failure in AUGraph - I'm completely stumped
  • From: Todd Blanchard <email@hidden>
  • Date: Fri, 17 Aug 2007 14:35:27 -0700

Attached is my log of calls to AUGraph stuff.  I'm calling it through a custom Cocoa API so it is easy to add logging.  It is a simple graph consisting of the sytem output and a matrix mixer.  It will not initialize.  I cannot figure it out.  Moving around the call order makes the error occur at different times.  For instance, calling initialize first will make the AUGraphConnectNodeInput call return the -10875 error instead.

2007-08-17 14:27:13.759 Jambalaya[25643] NewAUGraph(1827E14)
2007-08-17 14:27:13.783 Jambalaya[25643] AUGraphNewNode(1827e14, AUMatrixMixer, 0, NULL, 1)
2007-08-17 14:27:13.784 Jambalaya[25643] AUGraphNewNode(1827e14, DefaultOutputUnit, 0, NULL, 2)
2007-08-17 14:27:13.784 Jambalaya[25643] AUGraphConnectNodeInput(1827E14, AUMatrixMixer(1), 0, DefaultOutputUnit(2), 0)
2007-08-17 14:27:13.784 Jambalaya[25643] AUGraphUpdate(1827E14,&1)
2007-08-17 14:27:13.846 Jambalaya[25643] AUGraphOpen(1827E14)
2007-08-17 14:27:13.850 Jambalaya[25643] AUGraphInitialize(1827E14)
2007-08-17 14:27:13.850 Jambalaya[25643] AUGraphInitialize failed with: -10875

I've blown the whole day on this so far and am quite irritated.  Especially when I have a sample program from Peter Yandell called SimpleSynth that does essentially the same thing - only it works.

The actual code is below:

	TBAudioUnit* mixerClass = [[TBAudioUnitManager sharedInstance] matrixMixer];
	TBAudioUnit* outputClass = [[TBAudioUnitManager sharedInstance] defaultOutput];

	_mixer = (TBAUMixer*) [_graph newNode: mixerClass];
	TBAudioUnitInstance* output = [_graph newNode: outputClass];

	[_graph connectInputOf: output number: 0 toOutputOf: _mixer number: 0];
	[_graph update];
	[_graph open];
	//[_mixer enableMeteringMode];
	[_mixer setNumberOfInputBusses: 8];
	[_mixer setNumberOfOutputBusses: 1];

	[_graph initialize];

 _______________________________________________
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

  • Follow-Ups:
    • Re: Initialization failure in AUGraph - solved
      • From: Todd Blanchard <email@hidden>
  • Prev by Date: Re: AUGraphInitialize returns -10875 - what does that mean?
  • Next by Date: multiple Cocoa views
  • Previous by thread: Re: AUGraphInitialize returns -10875 - what does that mean?
  • Next by thread: Re: Initialization failure in AUGraph - solved
  • Index(es):
    • Date
    • Thread