# HG changeset patch # User Ryan C. Gordon # Date 1157233804 0 # Node ID df06e6eb65c64711fcd301facf30be14d6cab8fe # Parent 72fa749280623190d87414755ebaa79be828e7bb Fixed macosx audio initialization (passed wrong struct to CoreAudio). diff -r 72fa74928062 -r df06e6eb65c6 src/audio/macosx/SDL_coreaudio.c --- a/src/audio/macosx/SDL_coreaudio.c Sat Sep 02 21:19:00 2006 +0000 +++ b/src/audio/macosx/SDL_coreaudio.c Sat Sep 02 21:50:04 2006 +0000 @@ -195,7 +195,7 @@ #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; \ } @@ -281,7 +281,7 @@ kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, - &desc, sizeof (desc)); + &strdesc, sizeof (strdesc)); CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)") /* Set the audio callback */ callback.inputProc = audioCallback;