no error occured and the game doesn't freeze anymore... but the music still doesn't play. Is there a compatability issue between SDL_mixer and WinXP?
None that I know of. Try breaking it down, Heres a sample I have tested on my computer..
Code:
Mix_Music *music = NULL;
music = Mix_LoadMUS("music.wav");
if(!music )
{
fprintf(stderr, "Couldn't load %s: %s\n", "music.wav",
Mix_GetError());
}
Mix_PlayMusic(music, 5);
or try this..
Code:
int MusicVolume = 128;
if (Mix_PlayingMusic() == 1) Mix_HaltMusic();
SDL_Delay(1000);
Mix_VolumeMusic(MusicVolume);
if(Mix_PlayMusic(music, -1)==-1)
{
printf("Mix_PlayMusic: %s\n", Mix_GetError());
}
try it with a different file if this doesn't work. I have had times when certain files have failed for no apparent reason.