[SOLVED] bug?: SDL2 doesn't play music
Posted: Fri Apr 22, 2016 2:18 am
This has been true for months. I'm playing EMC levels (currently "/usr/share/games/rocksndiamonds/levels/Emerald Mine Club/emc_cosmos_mine_10/22"). These have a startup music (which I don't actually like very much), sounds sort of like "bam bam BAMP bam bam BAMP ...".
SDL1 binaries play that music at startup, until I hit <ESC> to shut them up and get to the main menu.
SDL2 binaries don't.
According to Settings -> Sound & music, I have all three types of sound (normal, looping & music) enabled, with respective volume levels of 2%, 2% and 100%.
Ah -- think I've observed this before -- if I capture stderr of both binaries, the SDL2 output includes these two extra lines:
I would sort of expect that just about anything purporting to play music would recognize MP3 format. What the heck?
Well, perhaps this:
... which leads to a different "What the heck?" -- how come -SDL1 can play MP3?!?
SDL1 binaries play that music at startup, until I hit <ESC> to shut them up and get to the main menu.
SDL2 binaries don't.
According to Settings -> Sound & music, I have all three types of sound (normal, looping & music) enabled, with respective volume levels of 2%, 2% and 100%.
Ah -- think I've observed this before -- if I capture stderr of both binaries, the SDL2 output includes these two extra lines:
Code: Select all
rocksndiamonds: warning: cannot read music file '/usr/share/games/rocksndiamonds/levels/Emerald Mine Club/mus_classic_em/music/./em_title.mp3': Unrecognized music format
rocksndiamonds: warning: cannot load artwork file 'em_title.mp3'
Well, perhaps this:
Code: Select all
$ strings -fa /usr/lib/x86_64-linux-gnu/libSDL*mixer*.so.0 | grep -i mp3
/usr/lib/x86_64-linux-gnu/libSDL_mixer-1.2.so.0: Mixer not built with MP3 support
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0: Mixer not built with MP3 support