SDL-mixer and SDL-sound: Problem with mp3 support

Manuel A. Fernandez Montecelo manuel.montezelo at
Sun May 12 12:14:24 UTC 2013


2013/5/10 Vincent Prat <vinceprat at>:
> Hello
> 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
[1].  Compiling and launching with these commands should let you hear

  gcc playmus.c -lSDL -lSDL_mixer -I /usr/include/SDL/ -o playmus
  ./playmus some-file.mp3

Let us know how it goes.



More information about the Pkg-sdl-maintainers mailing list