Open khiav223577 opened 3 years ago
I call me_play and bgm_play in order. It is expected to play the ME first, and then play the BGM when the ME stops. It works in RPG Maker XP. But in mkxp, sometimes BGM will briefly play and then stop in less than one second.
me_play
bgm_play
mkxp
Audio.me_play(prelude_name, 80, 100) Audio.bgm_play('bgm_name', 80, 100)
I guess it is because ME is checked for every 10ms. In between every checks, BGM may play. https://github.com/Ancurio/mkxp/blob/ae59fcd112ef6ae323c7b72b50a01c8d78085306/src/audio.cpp#L235
I call
me_play
andbgm_play
in order. It is expected to play the ME first, and then play the BGM when the ME stops. It works in RPG Maker XP. But inmkxp
, sometimes BGM will briefly play and then stop in less than one second.I guess it is because ME is checked for every 10ms. In between every checks, BGM may play. https://github.com/Ancurio/mkxp/blob/ae59fcd112ef6ae323c7b72b50a01c8d78085306/src/audio.cpp#L235