The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Mix_LoadMus std::bad_alloc crash
MrTAToad


Joined: 13 Feb 2014
Posts: 205
Location: Chichester, England
It seems that SDL_mixer cant play some types of MP3 files (for example the Simple Music to Frighten Small Children By tune by Kevin Mcloud). The only thing I can think of that can cause this discrepancy is the bit rate (the one that cant play is 192kbps), and the one that does is 128kbps

When SDL_mixer is comes up with a std::bad_alloc crash.

Yes, it does seem to be the bit rate causing the problems
MrTAToad


Joined: 13 Feb 2014
Posts: 205
Location: Chichester, England
There also seems to be problems with filesizes - anything more than several K and it refuses to play - sometimes...