Mercurial > SDL_sound_CoreAudio
comparison SDL_sound.c @ 554:e9a6286d9243
Tidy up the decoder list code.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 27 Jan 2009 13:55:36 -0500 |
parents | 5ec7f4e5e20b |
children | 7e08477b0fc1 |
comparison
equal
deleted
inserted
replaced
553:5ec7f4e5e20b | 554:e9a6286d9243 |
---|---|
45 #include "SDL_sound_internal.h" | 45 #include "SDL_sound_internal.h" |
46 | 46 |
47 | 47 |
48 /* The various decoder drivers... */ | 48 /* The various decoder drivers... */ |
49 | 49 |
50 #if (defined SOUND_SUPPORTS_SMPEG) | 50 /* All these externs may be missing; we check SOUND_SUPPORTS_xxx before use. */ |
51 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SMPEG; | 51 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SMPEG; |
52 #endif | 52 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MPGLIB; |
53 | 53 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD; |
54 #if (defined SOUND_SUPPORTS_MPGLIB) | 54 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MODPLUG; |
55 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MPGLIB; | 55 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV; |
56 #endif | 56 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF; |
57 | 57 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AU; |
58 #if (defined SOUND_SUPPORTS_MIKMOD) | 58 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG; |
59 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD; | 59 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC; |
60 #endif | 60 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_RAW; |
61 | 61 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; |
62 #if (defined SOUND_SUPPORTS_MODPLUG) | 62 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; |
63 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MODPLUG; | 63 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; |
64 #endif | 64 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; |
65 | 65 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; |
66 #if (defined SOUND_SUPPORTS_WAV) | |
67 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV; | |
68 #endif | |
69 | |
70 #if (defined SOUND_SUPPORTS_AIFF) | |
71 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF; | |
72 #endif | |
73 | |
74 #if (defined SOUND_SUPPORTS_AU) | |
75 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AU; | |
76 #endif | |
77 | |
78 #if (defined SOUND_SUPPORTS_OGG) | |
79 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG; | |
80 #endif | |
81 | |
82 #if (defined SOUND_SUPPORTS_VOC) | |
83 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC; | |
84 #endif | |
85 | |
86 #if (defined SOUND_SUPPORTS_RAW) | |
87 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_RAW; | |
88 #endif | |
89 | |
90 #if (defined SOUND_SUPPORTS_SHN) | |
91 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; | |
92 #endif | |
93 | |
94 #if (defined SOUND_SUPPORTS_MIDI) | |
95 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; | |
96 #endif | |
97 | |
98 #if (defined SOUND_SUPPORTS_FLAC) | |
99 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; | |
100 #endif | |
101 | |
102 #if (defined SOUND_SUPPORTS_QUICKTIME) | |
103 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; | |
104 #endif | |
105 | |
106 #if (defined SOUND_SUPPORTS_SPEEX) | |
107 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; | |
108 #endif | |
109 | 66 |
110 typedef struct | 67 typedef struct |
111 { | 68 { |
112 int available; | 69 int available; |
113 const Sound_DecoderFunctions *funcs; | 70 const Sound_DecoderFunctions *funcs; |