comparison SDL_sound.c @ 262:6fe6de401b63

mpglib support.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 21 Feb 2002 19:46:55 +0000
parents ceadd952319a
children c97be6e1bd27
comparison
equal deleted inserted replaced
261:9b6e82f7c853 262:6fe6de401b63
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_MP3) 50 #if (defined SOUND_SUPPORTS_SMPEG)
51 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MP3; 51 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SMPEG;
52 #endif
53
54 #if (defined SOUND_SUPPORTS_MPGLIB)
55 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MPGLIB;
52 #endif 56 #endif
53 57
54 #if (defined SOUND_SUPPORTS_MIKMOD) 58 #if (defined SOUND_SUPPORTS_MIKMOD)
55 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD; 59 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD;
56 #endif 60 #endif
103 const Sound_DecoderFunctions *funcs; 107 const Sound_DecoderFunctions *funcs;
104 } decoder_element; 108 } decoder_element;
105 109
106 static decoder_element decoders[] = 110 static decoder_element decoders[] =
107 { 111 {
108 #if (defined SOUND_SUPPORTS_MP3) 112 #if (defined SOUND_SUPPORTS_SMPEG)
109 { 0, &__Sound_DecoderFunctions_MP3 }, 113 { 0, &__Sound_DecoderFunctions_SMPEG },
114 #endif
115
116 #if (defined SOUND_SUPPORTS_MPGLIB)
117 { 0, &__Sound_DecoderFunctions_MPGLIB },
110 #endif 118 #endif
111 119
112 #if (defined SOUND_SUPPORTS_MODPLUG) 120 #if (defined SOUND_SUPPORTS_MODPLUG)
113 { 0, &__Sound_DecoderFunctions_MODPLUG }, 121 { 0, &__Sound_DecoderFunctions_MODPLUG },
114 #endif 122 #endif