diff SDL_sound.c @ 562:7e08477b0fc1

MP3 decoder upgrade work. Ripped out SMPEG and mpglib support, replaced it with "mpg123.c" and libmpg123. libmpg123 is a much better version of mpglib, so it should solve all the problems about MP3's not seeking, or most modern MP3's not playing at all, etc. Since you no longer have to make a tradeoff with SMPEG for features, and SMPEG is basically rotting, I removed it from the project. There is still work to be done with libmpg123...there are MMX, 3DNow, SSE, Altivec, etc decoders which we don't have enabled at the moment, and the build system could use some work to make this compile more cleanly, etc. Still: huge win.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 30 Jan 2009 02:44:47 -0500
parents e9a6286d9243
children 8d62447b75f2
line wrap: on
line diff
--- a/SDL_sound.c	Fri Jan 30 01:54:03 2009 -0500
+++ b/SDL_sound.c	Fri Jan 30 02:44:47 2009 -0500
@@ -48,8 +48,7 @@
 /* The various decoder drivers... */
 
 /* 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_MPG123;
 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIKMOD;
 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MODPLUG;
 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV;
@@ -72,12 +71,8 @@
 
 static decoder_element decoders[] =
 {
-#if (defined SOUND_SUPPORTS_SMPEG)
-    { 0, &__Sound_DecoderFunctions_SMPEG },
-#endif
-
-#if (defined SOUND_SUPPORTS_MPGLIB)
-    { 0, &__Sound_DecoderFunctions_MPGLIB },
+#if (defined SOUND_SUPPORTS_MPG123)
+    { 0, &__Sound_DecoderFunctions_MPG123 },
 #endif
 
 #if (defined SOUND_SUPPORTS_MODPLUG)