Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Since we're not using the CoreAudio HAL now, we don't need to use Ena…
Browse files Browse the repository at this point in the history
…bleIO.

I think that's how it works.

Fixes failure to open audio device on Mac OS X.
  • Loading branch information
icculus committed Jan 11, 2010
1 parent 44495e8 commit 00431e4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/audio/macosx/SDL_coreaudio.c
Expand Up @@ -420,7 +420,6 @@ prepare_audiounit(_THIS, const char *devname, int iscapture,
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);
Expand Down Expand Up @@ -449,22 +448,6 @@ prepare_audiounit(_THIS, const char *devname, int iscapture,

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,
Expand Down

0 comments on commit 00431e4

Please sign in to comment.