Mercurial > sdl-ios-xcode
comparison src/audio/dmedia/SDL_irixaudio.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 | 1f156fd874fa |
children |
comparison
equal
deleted
inserted
replaced
3845:ee5dfa7f7993 | 3846:66fb40445587 |
---|---|
43 #define alSetQueueSize(x,y) ALsetqueuesize(x,y) | 43 #define alSetQueueSize(x,y) ALsetqueuesize(x,y) |
44 #define alSetSampFmt(x,y) ALsetsampfmt(x,y) | 44 #define alSetSampFmt(x,y) ALsetsampfmt(x,y) |
45 #define alSetWidth(x,y) ALsetwidth(x,y) | 45 #define alSetWidth(x,y) ALsetwidth(x,y) |
46 #endif | 46 #endif |
47 | 47 |
48 static int | |
49 IRIXAUDIO_Available(void) | |
50 { | |
51 return 1; | |
52 } | |
53 | |
54 void static | 48 void static |
55 IRIXAUDIO_WaitDevice(_THIS) | 49 IRIXAUDIO_WaitDevice(_THIS) |
56 { | 50 { |
57 Sint32 timeleft; | 51 Sint32 timeleft; |
58 | 52 |
234 | 228 |
235 return 1; | 229 return 1; |
236 } | 230 } |
237 | 231 |
238 AudioBootStrap IRIXAUDIO_bootstrap = { | 232 AudioBootStrap IRIXAUDIO_bootstrap = { |
239 "AL", "IRIX DMedia audio", | 233 "AL", "IRIX DMedia audio", IRIXAUDIO_Init, 0 |
240 IRIXAUDIO_Available, IRIXAUDIO_Init, 0 | |
241 }; | 234 }; |
242 | 235 |
243 /* vi: set ts=4 sw=4 expandtab: */ | 236 /* vi: set ts=4 sw=4 expandtab: */ |