Fixed CoreAudio specific device open. SDL-ryan-multiple-audio-device
authorRyan C. Gordon <icculus@icculus.org>
Wed, 04 Oct 2006 21:39:33 +0000
branchSDL-ryan-multiple-audio-device
changeset 3799 f424927138ff
parent 3798 c8b3d3d13ed1
child 3800 2d77a732bd20
Fixed CoreAudio specific device open.
src/audio/macosx/SDL_coreaudio.c
--- a/src/audio/macosx/SDL_coreaudio.c	Wed Oct 04 21:27:53 2006 +0000
+++ b/src/audio/macosx/SDL_coreaudio.c	Wed Oct 04 21:39:33 2006 +0000
@@ -231,6 +231,9 @@
     impl->CloseDevice = COREAUDIO_CloseDevice;
     impl->Deinitialize = COREAUDIO_Deinitialize;
     impl->ProvidesOwnCallbackThread = 1;
+
+    build_device_lists();  /* do an initial check for devices... */
+
     return 1;
 }