Edit

IABSD.fr/ports/games/easyrpg/patches

Branch :

  • Show log

    Commit

  • Author : naddy
    Date : 2022-03-11 19:04:03
    Hash : 9433d2a3
    Message : drop RCS Ids

  • patch-src_audio_sdl_mixer_cpp
  • https://github.com/carstene1ns/easyrpg-player/commit/4206ae21a07a9263df74e217c67b6928a4ef775d
    
    Index: src/audio_sdl_mixer.cpp
    --- src/audio_sdl_mixer.cpp.orig
    +++ src/audio_sdl_mixer.cpp
    @@ -242,8 +242,12 @@ void SdlMixerAudio::BGM_OnPlayedOnce() {
     
     	if (!bgm_stop) {
     		played_once = true;
    -		// Play indefinitely without fade-in
    +
    +// introduced in SDL2_mixer 2.0.2, which deprecated libmad
    +#ifndef SDL_MIXER_COMPILEDVERSION
     		if (Mix_GetMusicType(bgm.get()) != MUS_MP3_MAD)
    +#endif
    +			// Play indefinitely without fade-in
     			Mix_PlayMusic(bgm.get(), -1);
     	}
     }