SDL-mixer and SDL-sound: Problem with mp3 support
Manuel A. Fernandez Montecelo
manuel.montezelo at gmail.com
Sun May 12 12:14:24 UTC 2013
2013/5/10 Vincent Prat <vinceprat at free.fr>:
> Since the upgrade from squeeze to wheezy, I cannot play mp3 files with
> sdl-mixer and sdl-sound anymore.
> Other audio formats (wav, ogg) work well. Is there something special to do
> to enable mp3 support or is it a bug?
> By the way, the description of the libsdl-mixer1.2 package talks about SPMEG
> but in fact it has been replaced by MAD.
> Thank you in advance.
You are right.
You shouldn't need to do anything special to play mp3 files, no. Did
you try to see if libmad indeed works in your system with the same mp3
files, by playing them with a program depending on it? For example
"mpg321", "cmus" or "audacity".
You can also use the "playmus.c" provided as sample with sdl-mixer
. Compiling and launching with these commands should let you hear
gcc playmus.c -lSDL -lSDL_mixer -I /usr/include/SDL/ -o playmus
Let us know how it goes.
More information about the Pkg-sdl-maintainers