• 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
ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?


  • Subject: ComplexPlayThru with a kAudioUnitType_Effect unit at the input side, how?
  • From: Roni Music <email@hidden>
  • Date: Mon, 15 Jan 2007 16:13:21 +0100



Hi,

I'm looking at the ComplexPlayThru example and am trying to figure out how I can add a
kAudioUnitType_Effect unit to the input side of the AUHal, meaning that when AudioUnitRender()
is called in the InputProc callback, the returned samples are already processed by the kAudioUnitType_Effect.



If I get it right, I need to connect the output of the input device to the input of the effect unit:
(mInputUnit and mEffectUnit are now opened OK)


    AudioUnitConnection myConnection;
    myConnection.sourceAudioUnit = mInputUnit;
    myConnection.sourceOutputNumber = 1;
    myConnection.destInputNumber = 0;

    err = AudioUnitSetProperty (mEffectUnit,
                      kAudioUnitProperty_MakeConnection,
                      kAudioUnitScope_Input,
                      0,
                      &myConnection,
                      sizeof (myConnection));

But how do I connect the output of the effect unit?
And to what?

Thanks for any clarification.
Rolf







_______________________________________________
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


  • Prev by Date: Node based Audio mixing
  • Next by Date: Re: Crash in MusicPlayerStart - OS X bug? [Test case added]
  • Previous by thread: Re: Node based Audio mixing
  • Next by thread: Re: Coreaudio-api Digest, Vol 4, Issue 14
  • Index(es):
    • Date
    • Thread