Slide 18
Slide 18 text
Audio Unit Playthrough
Step 3 of 4: Configuring the Stream Format & Enabling Input
AudioUnitSetProperty(ioUnit,
! ! ! ! ! ! ! kAudioUnitProperty_StreamFormat,
! ! ! ! ! ! ! kAudioUnitScope_Output,
! ! ! ! ! ! ! kInputBus,
! ! ! ! ! ! ! &audioFormat,
! ! ! ! ! ! ! sizeof(audioFormat));
AudioUnitSetProperty(ioUnit,
! ! ! ! ! ! ! kAudioUnitProperty_StreamFormat,
! ! ! ! ! ! ! kAudioUnitScope_Input,
! ! ! ! ! ! ! kOutputBus,
! ! ! ! ! ! ! &audioFormat,
! ! ! ! ! ! ! sizeof(audioFormat));
uint32_t enableInput = 1;
AudioUnitSetProperty(ioUnit,
! ! ! ! ! ! ! kAudioOutputUnitProperty_EnableIO,
! ! ! ! ! ! ! kAudioUnitScope_Output,
! ! ! ! ! ! ! kOutputBus,
! ! ! ! ! ! ! &enableInput,
! ! ! ! ! ! ! sizeof(enableInput));