mirror of
https://github.com/yawut/SDL.git
synced 2026-09-10 01:56:15 -05:00
Fixed macosx audio initialization (passed wrong struct to CoreAudio).
This commit is contained in:
@@ -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; \
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user