diff src/audio/macosx/SDL_coreaudio.c @ 3846:66fb40445587 SDL-ryan-multiple-audio-device

Removed distinction between "available" and "init" in audio backends, since both had to be checked for success as a pair at the higher level and several of the Available methods were just always-succeed placeholders anyhow. Now the availability check is done in the init code, and the higher level tries all possible drivers until one manages to initialize successfully.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:09:21 +0000
parents 29e83f221c62
children
line wrap: on
line diff
--- a/src/audio/macosx/SDL_coreaudio.c	Tue Oct 17 08:04:51 2006 +0000
+++ b/src/audio/macosx/SDL_coreaudio.c	Tue Oct 17 09:09:21 2006 +0000
@@ -201,11 +201,6 @@
     return 0;
 }
 
-static int
-COREAUDIO_Available(void)
-{
-    return 1;  /* always available on Mac OS X. */
-}
 
 static int
 COREAUDIO_DetectDevices(int iscapture)
@@ -582,8 +577,7 @@
 }
 
 AudioBootStrap COREAUDIO_bootstrap = {
-    "coreaudio", "Mac OS X CoreAudio",
-    COREAUDIO_Available, COREAUDIO_Init, 0
+    "coreaudio", "Mac OS X CoreAudio", COREAUDIO_Init, 0
 };
 
 /* vi: set ts=4 sw=4 expandtab: */