Mercurial > SDL_sound_CoreAudio
changeset 555:3b1d1269e20d stable-1.0
Backport from head: clean up decoder list #ifdefs.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 27 Jan 2009 14:08:54 -0500 |
parents | 394e3ec86164 |
children | 1c7d570fcee8 |
files | SDL_sound.c |
diffstat | 1 files changed, 16 insertions(+), 59 deletions(-) [+] |
line wrap: on
line diff
--- a/SDL_sound.c Sun Apr 20 20:36:59 2008 +0000 +++ b/SDL_sound.c Tue Jan 27 14:08:54 2009 -0500 @@ -47,65 +47,22 @@ /* The various decoder drivers... */ -#if (defined SOUND_SUPPORTS_SMPEG) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SMPEG; -#endif - -#if (defined SOUND_SUPPORTS_MPGLIB) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MPGLIB; -#endif - -#if (defined SOUND_SUPPORTS_MIKMOD) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD; -#endif - -#if (defined SOUND_SUPPORTS_MODPLUG) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MODPLUG; -#endif - -#if (defined SOUND_SUPPORTS_WAV) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV; -#endif - -#if (defined SOUND_SUPPORTS_AIFF) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF; -#endif - -#if (defined SOUND_SUPPORTS_AU) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AU; -#endif - -#if (defined SOUND_SUPPORTS_OGG) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG; -#endif - -#if (defined SOUND_SUPPORTS_VOC) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC; -#endif - -#if (defined SOUND_SUPPORTS_RAW) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_RAW; -#endif - -#if (defined SOUND_SUPPORTS_SHN) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; -#endif - -#if (defined SOUND_SUPPORTS_MIDI) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; -#endif - -#if (defined SOUND_SUPPORTS_FLAC) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; -#endif - -#if (defined SOUND_SUPPORTS_QUICKTIME) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; -#endif - -#if (defined SOUND_SUPPORTS_SPEEX) -extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; -#endif +/* All these externs may be missing; we check SOUND_SUPPORTS_xxx before use. */ +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SMPEG; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MPGLIB; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MODPLUG; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_AU; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_VOC; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_RAW; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; +extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; typedef struct {