Mercurial > sdl-ios-xcode
changeset 3637:8a46b3eab813
Since we're not using the CoreAudio HAL now, we don't need to use EnableIO.
I think that's how it works.
Fixes failure to open audio device on Mac OS X.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 11 Jan 2010 07:45:34 +0000 |
parents | e474a820daeb |
children | 6e70cf55a368 |
files | src/audio/macosx/SDL_coreaudio.c |
diffstat | 1 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audio/macosx/SDL_coreaudio.c Mon Jan 11 07:33:56 2010 +0000 +++ b/src/audio/macosx/SDL_coreaudio.c Mon Jan 11 07:45:34 2010 +0000 @@ -420,7 +420,6 @@ AURenderCallbackStruct callback; ComponentDescription desc; Component comp = NULL; - UInt32 enableIO = 0; const AudioUnitElement output_bus = 0; const AudioUnitElement input_bus = 1; const AudioUnitElement bus = ((iscapture) ? input_bus : output_bus); @@ -449,22 +448,6 @@ this->hidden->audioUnitOpened = 1; - // !!! FIXME: this is wrong? - enableIO = ((iscapture) ? 1 : 0); - result = AudioUnitSetProperty(this->hidden->audioUnit, - kAudioOutputUnitProperty_EnableIO, - kAudioUnitScope_Input, input_bus, - &enableIO, sizeof(enableIO)); - CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_EnableIO input)"); - - // !!! FIXME: this is wrong? - enableIO = ((iscapture) ? 0 : 1); - result = AudioUnitSetProperty(this->hidden->audioUnit, - kAudioOutputUnitProperty_EnableIO, - kAudioUnitScope_Output, output_bus, - &enableIO, sizeof(enableIO)); - CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_EnableIO output)"); - result = AudioUnitSetProperty(this->hidden->audioUnit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0,