Created
July 5, 2014 14:07
-
-
Save myrual/b8e88c6609ac411314f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
audio session init | |
audio session active | |
set audio category | |
set audio route change notification | |
prefer_buffer 005 | |
get sample hardware rate | |
setup rio for input | |
setup rio for ouput | |
render callback kAudioUnitProperty_SetRenderCallback | |
outFormat.SetAUCanonical(2, false); | |
XThrowIfError(AudioUnitSetProperty(inRemoteIOUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &outFormat, sizeof(outFormat)), "couldn't set the remote I/O unit's output client format"); | |
XThrowIfError(AudioUnitSetProperty(inRemoteIOUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1, &outFormat, sizeof(outFormat)), "couldn't set the remote I/O unit's input client format"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment