[SDL] SDL_mixer1.2.7 - MP3 playback is unstable on WinXP...

Peter Mulholland darkmatter at freeuk.com
Wed Aug 2 06:03:14 PDT 2006


SlntHero at aol.com wrote:
>  
> SDL_mixer1.2.7 - MP3 playback is unstable on WinXP...
>  
> I read the instructions and checked my source code and everything seems to  be
> written ok, but using certain values for "int Mix_OpenAudio(int  frequency,
> Uint16 format, int channels, int chunksize)" produces program  lock-ups
> (crashes).
>  
> 
> Example:
>  
> Using:
>  
> Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT ,  
> MIX_DEFAULT_CHANNELS,
> 1024)
>  
> sometimes crashes on initialization (Mix_OpenAudio) and sometimes crashes  on
> switching current MP3 music playing (Mix_PlayMusic) and sometimes crashes  on
> de-initialization (Mix_CloseAudio).
>  
> 
> Changing to:
>  
> Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT , MIX_DEFAULT_CHANNELS, 512)
>  
> seems to fix the crash problems.
>  
> 
> Hope someone can fix these issues and release fixes in SDL_mixer  1.2.8

Find out exactly where the crashes occur. This is fairly easy with 
Visual Studio. My guess is that the crashes are inside smpeg.

Pete.




More information about the SDL mailing list