src/audio/macosx/SDL_coreaudio.c
changeset 2017 df06e6eb65c6
parent 2016 72fa74928062
child 2043 adf732f1f016
--- 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;