Fixed macosx audio initialization (passed wrong struct to CoreAudio).
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402065
This commit is contained in:
parent
0d6e6d5c9c
commit
bf2a2d714d
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ Core_CloseAudio(_THIS)
|
||||||
|
|
||||||
#define CHECK_RESULT(msg) \
|
#define CHECK_RESULT(msg) \
|
||||||
if (result != noErr) { \
|
if (result != noErr) { \
|
||||||
SDL_SetError("Failed to start CoreAudio: " msg); \
|
SDL_SetError("CoreAudio error (%s): %d", msg, (int) result); \
|
||||||
return -1; \
|
return -1; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ Core_OpenAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
kAudioUnitProperty_StreamFormat,
|
kAudioUnitProperty_StreamFormat,
|
||||||
kAudioUnitScope_Input,
|
kAudioUnitScope_Input,
|
||||||
0,
|
0,
|
||||||
&desc, sizeof (desc));
|
&strdesc, sizeof (strdesc));
|
||||||
CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)")
|
CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)")
|
||||||
/* Set the audio callback */
|
/* Set the audio callback */
|
||||||
callback.inputProc = audioCallback;
|
callback.inputProc = audioCallback;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue