title: Mixer AudioUnit to RemoteIO AudioUnit
body: <p>I have an AudioUnit with correspondent Callback working properly, But now, I need to send it to a RemoteIO, cause i'm implementing some framework who needs an RemoteIO AudioUnit to work.</p>
  
  <p>THen... I need the same output i'm getting with this audiounit mixer but with another audiounit with type kAudioUnitSubType_RemoteIO.</p>
  
  <p>Please, help!</p>
  
  <p>EDIT ...
  This is the code I'm trying... 
  EDIT 2- iOUnitDescription Added</p>
  
  <pre><code>AudioComponentDescription iOUnitDescription;
  iOUnitDescription.componentType          = kAudioUnitType_Output;
  iOUnitDescription.componentSubType       = kAudioUnitSubType_RemoteIO;
  iOUnitDescription.componentManufacturer  = kAudioUnitManufacturer_Apple;
  iOUnitDescription.componentFlags         = 0;
  iOUnitDescription.componentFlagsMask     = 0;
  
  
  AudioComponent foundIoUnitReference = AudioComponentFindNext (
                                                                NULL,
                                                                &amp;iOUnitDescription
                                                                );
  AudioComponentInstanceNew (
                             foundIoUnitReference,
                             &amp;audioUnit
                             );
  
  result = AudioUnitSetProperty (
                                 audioUnit,
                                 kAudioUnitProperty_StreamFormat,
                                 kAudioUnitScope_Input,
                                 guitarBus,
                                 &amp;stereoStreamFormat,
                                 sizeof (stereoStreamFormat)
                                 );
  
  if (noErr != result) {[self printErrorMessage: @"AudioUnitSetProperty (set mixer unit guitar input bus stream format)" withStatus: result];return;}
  result = AudioUnitSetProperty (
                                 audioUnit,
                                 kAudioUnitProperty_SampleRate,
                                 kAudioUnitScope_Output,
                                 0,
                                 &amp;graphSampleRate,
                                 sizeof (graphSampleRate)
                                 );
  if (noErr != result) {[self printErrorMessage: @"AudioUnitSetProperty (set AUDIOUNIT unit output stream format)" withStatus: result]; return;}
  
  
  AudioUnitElement mixerUnitOutputBus  = 0;
  AudioUnitElement ioUnitOutputElement = 0;
  
  AudioUnitConnection mixerOutToIoUnitIn;
  mixerOutToIoUnitIn.sourceAudioUnit    = mixerUnit;
  mixerOutToIoUnitIn.sourceOutputNumber = mixerUnitOutputBus;
  mixerOutToIoUnitIn.destInputNumber    = ioUnitOutputElement;
  
  AudioUnitSetProperty (
                        audioUnit,                     // connection destination
                        kAudioUnitProperty_MakeConnection,  // property key
                        kAudioUnitScope_Input,              // destination scope
                        ioUnitOutputElement,                // destination element
                        &amp;mixerOutToIoUnitIn,                // connection definition
                        sizeof (mixerOutToIoUnitIn)
                        );
  </code></pre>