• 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 <email@hidden>
  • Date: Wed, 23 Sep 2009 04:56:20 -0700 (PDT)

Yes, it is correct. Thank you Doug!
Tu


From: Doug Wyatt <email@hidden>
To: learnfromforum learnfromforum <email@hidden>
Cc: CoreAudio Mailing List <email@hidden>
Sent: Tuesday, September 22, 2009 8:49:14 PM
Subject: Re: RemoteIO unit at beginning and end of an AUGraph

That error indicates that the destination (mixer 0) is already connected from something else -- converterNode 0 in your example.

On Sep 22, 2009, at 7:23 , learnfromforum learnfromforum wrote:

> 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

References: 
 >Re: RemoteIO unit at beginning and end of an AUGraph (From: learnfromforum learnfromforum <email@hidden>)
 >Re: RemoteIO unit at beginning and end of an AUGraph (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: auval FATAL ERROR. How to know whee is the component?
  • Next by Date: Re: kAudioFileAAC_ADTSType for aac plus?
  • Previous by thread: Re: RemoteIO unit at beginning and end of an AUGraph
  • Next by thread: handling complex interaction between view and model in an audio unit
  • Index(es):
    • Date
    • Thread