diff decoders/mp3.c @ 149:1df5c106504e

Decoders can now list multiple file extensions.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 01 Nov 2001 19:13:17 +0000
parents 40de367eb59e
children 47cc2de2ae36
line wrap: on
line diff
--- a/decoders/mp3.c	Thu Nov 01 19:12:36 2001 +0000
+++ b/decoders/mp3.c	Thu Nov 01 19:13:17 2001 +0000
@@ -55,10 +55,11 @@
 static void MP3_close(Sound_Sample *sample);
 static Uint32 MP3_read(Sound_Sample *sample);
 
+static const char *extensions_smpeg[] = { "MP3", "MPEG", "MPG", NULL };
 const Sound_DecoderFunctions __Sound_DecoderFunctions_MP3 =
 {
     {
-        "MP3",
+        extensions_smpeg,
         "MPEG-1 Layer 3 audio through SMPEG",
         "Ryan C. Gordon <icculus@clutteredmind.org>",
         "http://www.icculus.org/SDL_sound/"