[SDL] question about handling events

Ivan Radojkovic itsa.registers at gmail.com
Thu Jul 28 15:34:47 PDT 2011

Extracting the file and playing it with madplay and mpg123 works.  The 
file *seems* damaged though.  madplay says:

   error: frame 0: lost synchronization
   error: frame 4: lost synchronization

but plays the file fine.  The original Windows-only engine (which my 
Linux/Mac application must be compatible with) is very tolerant on this 
and plays MP3s even if they seem damaged (using code from mpg123), and 
therefore there are games for that engine that seem to use damaged MP3s. 
  Obviously, I need to be able to do the same, otherwise I'm not going 
to be compatible with the original Windows-engine.

On 07/15/2011 01:45 AM, Mason Wheeler wrote:
> Verify the file in a different media player. SDL_Mixer attempts to check
> "magic numbers" in a music file's header against known values, and if it
> can't find a match, it defaults to MOD. What this behavior means is that
> the check against the known header magic number for an MP3 file is
> failing, which most likely means your file is corrupt in some way.
> *From:* Nikos Chantziaras <realnc at arcor.de>
> *To:* sdl at libsdl.org
> *Sent:* Thursday, July 14, 2011 3:34 PM
> *Subject:* [SDL] SDL_mixer is recognizing MP3 as MOD
> There's one MP3 track that when trying to load it with Mix_LoadMUS_RW(),
> SDL_mixer thinks it's a MOD file and fails with "Module format not
> recognized". Is there anything I can do about it? When loading it, I
> know it's going to be MP3 data, but I can't find any way to tell that to
> SDL_mixer.
> Touching the MP3 data itself is not an option, since the application is
> a game engine (a bit like SCUMMVM) that runs pre-existing games made by
> people I never heard about.
> I'm out of ideas :-/
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

More information about the SDL mailing list