Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS - RemoteIO AudioUnits, possible to have 2?
    text
    copied!<p>I'm trying to do this </p> <p><strong>RemoteIO1 (for recording to buffer) -> kAudioUnitType_Mixer -> RemoteIO2 (for playback of output)</strong> </p> <p><strong>RemoteIO1</strong> is used for 2 purposes :</p> <p>1) To feed audio into the mixer channel 0</p> <p>2) To record audio from mic to a buffer </p> <p><strong>kAudioUnitType_Mixer</strong> </p> <p>1) Takes audio from RemoteIO - input 0</p> <p>2) Mixes the audio from (1) with audio from the buffer - input1</p> <p><strong>RemoteIO2</strong></p> <p>1) Takes the mixed audio and sends it to playback </p> <p>Initially I thought that I could just playback from mixer output but the following gives me an error. Can I confirm that I need another RemoteIO to do playback? </p> <pre><code>// Enable Mixer for playback status = AudioUnitSetProperty(_mixerUnit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, mixerOutputBus, &amp;flag, sizeof(flag)); if (noErr != status) { NSLog(@"Enable Mixer for playback error"); return; } </code></pre> <p>Also, I did the following test and realised there seems to be only one RemoteIO available (addresses for inputComponent and inputComponent2 are the same) </p> <pre><code>// Get component AudioComponent inputComponent = AudioComponentFindNext(NULL, &amp;desc); AudioComponent inputComponent2 = AudioComponentFindNext(NULL, &amp;desc); </code></pre> <p>Is it true that I can only have one instance of RemoteIO in my app? If so, what are the alternatives for the 2nd RemoteIO? </p> <p>Thanks. </p> <p>Pier. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload