• 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
Re: RemoteIO unit at beginning and end of an AUGraph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RemoteIO unit at beginning and end of an AUGraph


  • Subject: Re: RemoteIO unit at beginning and end of an AUGraph
  • From: learnfromforum learnfromforum <email@hidden>
  • Date: Tue, 22 Sep 2009 07:23:15 -0700 (PDT)

Hi all,

I have now the same situation like Chris once had. I need one io node (for mic and speaker), one mixer unit and one converter unit. Each one has one input and one output. These three nodes should be connected to form a cycle connection. I have a problem with the connection between mixer node and converter node. It says always that this connection can not be made. I followed Chris's src code on the Pastie (http://pastie.org/445149) and also faced the same problems as Chris stated there. I would be appreciate if anyone could share your working code in this matter.

Thank you,
Tu

The last line of the following code return the error code number -10861 which is an kAUGraphErr_InvalidConnection error

err = AUGraphAddNode(state->myAudio->graph, &ioDesc, &ioNode);
err = AUGraphAddNode(state->myAudio->graph, &mixerDesc, &mixerNode);
err = AUGraphAddNode(state->myAudio->graph, &converterDesc, &converterNode);

//node connection
err = AUGraphConnectNodeInput(state->myAudio->graph, mixerNode, 0, ioNode, 0);
err = AUGraphConnectNodeInput(state->myAudio->graph, ioNode, 1, converterNode, 0);
err = AUGraphConnectNodeInput(state->myAudio->graph, converterNode, 0, mixerNode, 0);

err = AUGraphOpen(state->myAudio->graph);

err = AUGraphNodeInfo(state->myAudio->graph, ioNode, &ioDesc, &state->myAudio->ioUnit);
err = AUGraphNodeInfo(state->myAudio->graph, mixerNode, &mixerDesc, &state->myAudio->mixerUnit);
err = AUGraphNodeInfo(state->myAudio->graph, converterNode, &converterDesc, &state->myAudio->converterUnit);
   
UInt32 numbuses = 5;
err = AudioUnitSetProperty(state->myAudio->mixerUnit, kAudioUnitProperty_ElementCount,
                               kAudioUnitScope_Input, 0, &numbuses, sizeof(UInt32) );
   
//the cross fader mixer callback
AURenderCallbackStruct callbackCrossFader;
callbackCrossFader.inputProc = &crossFaderMixerCallback;
callbackCrossFader.inputProcRefCon = state;

err = AUGraphSetNodeInputCallback(state->myAudio->graph, mixerNode, 0, &callbackCrossFader);
/****** err here = -10861 ******/


 _______________________________________________
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: RemoteIO unit at beginning and end of an AUGraph
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Input buses for multichannel mixer
  • Next by Date: Re: Trying to use an AUConverter with an input callback (Leopard 10.5.8)
  • Previous by thread: Re: Problem Compiling PublicUtility Classes
  • Next by thread: Re: RemoteIO unit at beginning and end of an AUGraph
  • Index(es):
    • Date
    • Thread