• 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: Chris Adamson <email@hidden>
  • Date: Mon, 6 Apr 2009 16:13:51 -0400

On Apr 6, 2009, at 2:02 PM, William Stewart wrote:

Right - so you just need to make a connection on one of your input buses of your mixer, to the output bus, element 1, of the aurio unit in your graph - that's your audio device input coming into your graph

That should work just fine (its how we also do this on the desktop with AULab for instance)

Wow, so I don't have to use the CAPlayThrough technique of copying samples to a ring buffer and then providing those to my mixer via a callback?  Well, that'll help!

Still, not there yet.  Given that remoteIONode already exists (having been created as the last node in the graph), I'm doing this:
// set up input from rio bus 1 into the mixer (bill says so!)
setupErr = AUGraphConnectNodeInput(auGraph, remoteIONode, 1, mixerNode, 3);

So far, I'm still not hearing any input from the mic mixed with my other sources.  I've preceded this AUGraphConnectNodeInput with code to enable input on the remoteIONode and set its input format, but these steps are apparently not sufficient.

// enable rio input
AudioUnitElement inputBus = 1;
setupErr = AudioUnitSetProperty(remoteIOUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input,
1,
&inputBus,
sizeof(inputBus));
[self throwIfErr:setupErr withMessage:@"couldn't enable rio input"];


// set rio input format?
setupErr = AudioUnitSetProperty (remoteIOUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&outputDesc,
sizeof (outputDesc));
[self throwIfErr:setupErr withMessage:@"Couldn't set RIO input format"];

Anyways, I'll keep at it.  Thanks for the tip.

--Chris

 _______________________________________________
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: 
 >RemoteIO unit at beginning and end of an AUGraph (From: Chris Adamson <email@hidden>)
 >Re: RemoteIO unit at beginning and end of an AUGraph (From: Chris Adamson <email@hidden>)
 >Re: RemoteIO unit at beginning and end of an AUGraph (From: William Stewart <email@hidden>)

  • Prev by Date: Re: ultra low latency AD interface for visualization purposes
  • Next by Date: Re: auval and version
  • Previous by thread: Re: RemoteIO unit at beginning and end of an AUGraph
  • Next by thread: Re: RemoteIO unit at beginning and end of an AUGraph
  • Index(es):
    • Date
    • Thread