Playing multiple music by SDL2_mixer

Hi all,

I’m checking the SDL_mixer documentation at
http://jcatki.no-ip.org:8080/SDL_mixer/SDL_mixer.html
, and found that Mix_PlayMusic() will stop the previous music when it’s
called twice. Is there any way to play multiple music at the same time with
SDL2_mixer?

Thanks,
Yamamoto

Isn’t the whole point of the music API that you would play only one
music at once?

2013/7/18, Yamamoto :> Hi all,

I’m checking the SDL_mixer documentation at
http://jcatki.no-ip.org:8080/SDL_mixer/SDL_mixer.html
, and found that Mix_PlayMusic() will stop the previous music when it’s
called twice. Is there any way to play multiple music at the same time with
SDL2_mixer?

Thanks,
Yamamoto


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

Actually, no. Music cross-fading is one example, But the fundamental
problem is the API is misnamed. It is the distinction between streamed
and preloaded sounds that is important, not music vs. sound effects.

The most basic case that hits this problem is when you need both music
and (long) speech.

This was the motivating factor that led me to write ALmixer and do
away with the music vs. sound effects dichotomy and the split API.

http://playcontrol.net/opensource/ALmixer/

Thanks,
EricOn 7/19/13, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

Isn’t the whole point of the music API that you would play only one
music at once?


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/