• 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: Wed, 8 Apr 2009 14:02:33 -0400

OK, I've stripped down my (working) mixer code to create a pastie (since I know pasting the code into this e-mail will make it too long for lists.apple.com):

<http://pastie.org/440947>

What I'm trying to do, if I understand you correctly, is to set up an AUGraph that ends with a RemoteIO node, which is connected to a MultiChannel Mixer node (from bus 0 of mixer to bus 0 of remoteio). I know this works, because my original code then has render callbacks on input buses 0, 1, and 2, and these are mixed and play out just fine.

Next, I'm connecting source node RemoteIO's bus 1 to the Mixer node's input bus 0. After opening the graph, I get the RemoteIO node and enable input and output, and set a fairly typical ASBD (canonical format, 16-bit ints, mono) on the RemoteIO and Mixer units.

Graphically:

[RemoteIO] --- bus 1 out / bus 0 in --> [MultiChannel Mixer] --- bus 0 out / bus 0 in ---> [RemoteIO] --- to H/W -->

I think the result should be that I hear input from my mic in my speakers. But I don't hear anything (on simulator or a first gen iPhone with default headset).

CAPlayThrough sets up its own callback on input to get samples and put them in a ring buffer, for use by another render callback. I fear that's what I need to end up doing, but I just want to understand if what you propose here is an easier option.

Thanks again, as always.

--Chris


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)

_______________________________________________ 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>
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: mp3 codec for Core Audio and CAFF
  • Next by Date: Re: RemoteIO unit at beginning and end of an AUGraph
  • 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