BGM should not be played before ME when calling me_play and bgm_play together #234

Open
opened 2020-12-11 17:45:37 +00:00 by khiav223577 · 0 comments
khiav223577 commented 2020-12-11 17:45:37 +00:00 (Migrated from github.com)

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.

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.
ae59fcd112/src/audio.cpp (L235)

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. ```rb 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
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MapleShrine/mkxp#234
No description provided.