[SDL] Problem with mp3 playback using SDL_mixer and SMPeg.dll

Rhythmic Fistman rfistman at gmail.com
Wed Dec 27 12:47:47 PST 2006


> From: karx11erx <karx11erx at hotmail.com>

> I'd rather sue you for not saying Merry Christmas ... ;)
>
> Merry Christmas and a happy new year to you, too. :)
>
> Btw, I think I have found the reason for the bug. SDL_mixer first starts the
> music, then sets the playback position to the start. For mp3, this means that a
> few threads are created, deleted and recreated very quickly. SDL or Windows do
> not seem to like that.

Implausible. More likely is that the threads are not being taken down properly.

> After I had temporarily disabled the positioning call,  the problem was gone.

Excellent proof of absence! And good call getting rid of that
ornamental positioning call!

> Another flaw was located in [smpeg]MPEGaudio.cpp, where
> MPEGaudio::StopDecoding() calls SDL_WaitThread(). SDL_KillThread() is safer.

Right, it's opposites day. Here we call it Boxing Day, anyone know why?

RF




More information about the SDL mailing list