Mercurial > sdl-ios-xcode
comparison src/audio/SDL_sysaudio.h @ 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 | b12b7ec0dfcc |
children |
comparison
equal
deleted
inserted
replaced
3845:ee5dfa7f7993 | 3846:66fb40445587 |
---|---|
105 | 105 |
106 typedef struct AudioBootStrap | 106 typedef struct AudioBootStrap |
107 { | 107 { |
108 const char *name; | 108 const char *name; |
109 const char *desc; | 109 const char *desc; |
110 int (*available) (void); | |
111 int (*init) (SDL_AudioDriverImpl *impl); | 110 int (*init) (SDL_AudioDriverImpl *impl); |
112 int demand_only:1; /* 1==request explicitly, or it won't be available. */ | 111 int demand_only:1; /* 1==request explicitly, or it won't be available. */ |
113 } AudioBootStrap; | 112 } AudioBootStrap; |
114 | 113 |
115 #endif /* _SDL_sysaudio_h */ | 114 #endif /* _SDL_sysaudio_h */ |
115 | |
116 /* vi: set ts=4 sw=4 expandtab: */ | 116 /* vi: set ts=4 sw=4 expandtab: */ |