SDL_mixer-1.2.7 and MP3 - Freezes sometimes on freeing MP3 music file

SDL_mixer-1.2.7 and MP3 - Freezes sometimes on freeing MP3 music file…

Hi,

I am trying to play MP3 music files with SDL_mixer-1.2.7.

When I run my game EXE, the MP3 music file plays ok,
but on game exit, the game sometimes freezes when freeing the MP3 music file.

The freeze sometimes occurs in the following code:-----------------------------------------------------------------
void Audio::UnLoadMusic(void)
{
Uint8 musicIndex;

Mix_HaltMusic();

for (musicIndex = 0;  musicIndex < MusicTotal;  musicIndex++)

{
Mix_FreeMusic(MusicTrack[musicIndex]);
// Freezes sometimes above when freeing MP3 music file
MusicTrack[musicIndex] = NULL;
}
}

This is occurring only when I play the MP3, if I not play MP3, then the
above code always works, but when in process of playing MP3 music file the
program sometimes freezes when freeing the playing MP3 music file.

The MOD music file playback seems 100%, but am having this problem with MP3
music files.

Anyone out there successfully using SDL_mixer-1.2.7 and MP3 music files ???

Any help would be appreciated.

Jesse “JeZ+Lee” Palser
SLNTHERO at AOL.com (mailto:SLNTHERO at AOL.com)
Silent Hero Productions®
http://www.silentheroproductions.com/
(http://www.silentheroproductions.com/)

SDL_mixer-1.2.7 and MP3 - Freezes sometimes on freeing MP3 music file…

Hi,

I am trying to play MP3 music files with SDL_mixer-1.2.7.

When I run my game EXE, the MP3 music file plays ok,
but on game exit, the game sometimes freezes when freeing the MP3 music file.

The freeze sometimes occurs in the following code:-----------------------------------------------------------------
void Audio::UnLoadMusic(void)
{
Uint8 musicIndex;

Mix_HaltMusic();

for (musicIndex = 0;  musicIndex < MusicTotal;  musicIndex++)

{
Mix_FreeMusic(MusicTrack[musicIndex]);
// Freezes sometimes above when freeing MP3 music file
MusicTrack[musicIndex] = NULL;
}
}

This is occurring only when I play the MP3, if I not play MP3, then the
above code always works, but when in process of playing MP3 music file the
program sometimes freezes when freeing the playing MP3 music file.

The MOD music file playback seems 100%, but am having this problem with MP3
music files.

Anyone out there successfully using SDL_mixer-1.2.7 and MP3 music files ???

Any help would be appreciated.

Jesse “JeZ+Lee” Palser
SLNTHERO at AOL.com (mailto:SLNTHERO at AOL.com)
Silent Hero Productions®
http://www.silentheroproductions.com/
(http://www.silentheroproductions.com/)


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl