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

Commit

Permalink
Fixed macosx audio initialization (passed wrong struct to CoreAudio).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 2, 2006
1 parent 58f4ac6 commit aa97ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/macosx/SDL_coreaudio.c
Expand Up @@ -195,7 +195,7 @@ Core_CloseAudio(_THIS)

#define CHECK_RESULT(msg) \
if (result != noErr) { \
SDL_SetError("Failed to start CoreAudio: " msg); \
SDL_SetError("CoreAudio error (%s): %d", msg, (int) result); \
return -1; \
}

Expand Down Expand Up @@ -281,7 +281,7 @@ Core_OpenAudio(_THIS, SDL_AudioSpec * spec)
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
0,
&desc, sizeof (desc));
&strdesc, sizeof (strdesc));
CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)")
/* Set the audio callback */
callback.inputProc = audioCallback;
Expand Down

0 comments on commit aa97ae7

Please sign in to comment.