• 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
Disconnecting an AudioUnitConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disconnecting an AudioUnitConnection


  • Subject: Disconnecting an AudioUnitConnection
  • From: Craig Bakalian <email@hidden>
  • Date: Tue, 15 Mar 2005 06:01:19 -0500

Hi,
I am writing code for the possible connections to a mixerUnit from other audio units. I am not doing this via AUGraph with nodes. I know how to implement a connection via:

-(void)connectToMixerInputNumber: (UInt32)number toAudioUnit: (AudioUnit)unit
{
AudioUnitConnection conn;
conn.sourceAudioUnit = unit;
conn.sourceOutputNumber = 0;
conn.destInputNumber = number;


AudioUnitSetProperty(mixerUnit,
kAudioUnitProperty_MakeConnection,
kAudioUnitScope_Input,
number,
&conn,
sizeof(conn));
}

But I do not know how to implement a disconnection- for, when an audio unit is removed from the application. Or, what would happen if an audio unit that was connected to the above mixerUnit was destroyed? Shouldn't I first set that ElementID to -1 or something?

Craig Bakalian
 _______________________________________________
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: Disconnecting an AudioUnitConnection
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: IO Proc doesn't behave as expected
  • Next by Date: Re: IO Proc doesn't behave as expected
  • Previous by thread: Apple CoreMidi
  • Next by thread: Re: Disconnecting an AudioUnitConnection
  • Index(es):
    • Date
    • Thread