SDL_Mixer: Can't call Mix_PlayMusic more than once

I’m really at a loss as to what’s going on with this. I’ve done some tests and
it seems that whenever I call Mix_PlayMusic more than once, it won’t play any
music. This means I can’t switch to another music number. I thought maybe it was
the volume being set to zero for some reason when I called Mix_PlayMusic again,
but checking with Mix_PlayingMusic it seems that it just isn’t playing the music
at all. I’m not getting any errors from Mix_GetError either. Is anybody else
getting this?

Anybody? I can’t use SDL_mixer for music playback at all with this problem… :frowning:

Which version is this? What platform?

Jonny DOn Sat, Nov 14, 2009 at 6:30 AM, Christian Knudsen wrote:

Anybody? I can’t use SDL_mixer for music playback at all with this problem… :frowning:


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I wrote this on the forum, but apparently only newsgroups posts are applied to
the forum, not the other way around…

  • SDL_mixer 1.2.10
  • I’m on Windows XP SP2 (haven’t tried in Ubuntu yet, as the repos don’t have
    SDL_mixer 1.2.10).
  • I’m programming in FreePascal with the JEDI-SDL headers.

I see this got broken off from the original thread when I changed the subject, so here are my system specs:

OS: Windows XP SP2 (I haven’t tried this in Ubuntu yet, as the repositories haven’t got 1.2.10 of SDL_mixer).
Programming language: FreePascal with the JEDI-SDL headers.------------------------
Privateer: Ascii Sector (www.asciisector.net)

This is actually related to the SDL_image bug where you can’t load
more than one image. I’m fixing it in both libraries and putting
together a new release.

Thanks!On Thu, Nov 12, 2009 at 11:59 PM, Christian Knudsen wrote:

I’m really at a loss as to what’s going on with this. I’ve done some tests and
it seems that whenever I call Mix_PlayMusic more than once, it won’t play any
music. This means I can’t switch to another music number. I thought maybe it was
the volume being set to zero for some reason when I called Mix_PlayMusic again,
but checking with Mix_PlayingMusic it seems that it just isn’t playing the music
at all. I’m not getting any errors from Mix_GetError either. Is anybody else
getting this?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC