diff src/audio/macrom/SDL_romaudio.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/macrom/SDL_romaudio.c	Tue Oct 17 08:04:51 2006 +0000
+++ b/src/audio/macrom/SDL_romaudio.c	Tue Oct 17 09:09:21 2006 +0000
@@ -50,13 +50,6 @@
 #include "../SDL_sysaudio.h"
 #include "SDL_romaudio.h"
 
-static int
-SNDMGR_Available(void)
-{
-    return (1);
-}
-
-
 #pragma options align=power
 
 static volatile SInt32 audio_is_locked = 0;
@@ -320,8 +313,7 @@
 }
 
 AudioBootStrap SNDMGR_bootstrap = {
-    "sndmgr", SDL_MACOS_NAME " SoundManager",
-    SNDMGR_Available, SNDMGR_Init, 0
+    "sndmgr", SDL_MACOS_NAME " SoundManager", SNDMGR_Init, 0
 };
 
 /* vi: set ts=4 sw=4 expandtab: */