Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGM mutes after BGM change, unmutable by clicking out and in the window again #3186

Open
Xenoras opened this issue Jan 19, 2024 · 4 comments
Milestone

Comments

@Xenoras
Copy link

Xenoras commented Jan 19, 2024

Thank you for supporting EasyRPG Player.
Before creating an issue, please verify that your bug still occurs in the "continuous builds" of the Player.
You can get them at the bottom of our download section: https://easyrpg.org/player/downloads


Please fill in the following fields before submitting an issue:

Name of the game: Vampires Dawn 2 - Ancient Blood

Player platform:

Windows

Attach files (as a .zip archive or link them)

  • A savegame next to the problem (if it is not at the beginning of the game)
  • The easyrpg_log.txt log file (you can find it in the game directory)
    easyrpg_log.txt
    Save15.zip

Describe the issue in detail and how to reproduce it:

Sometimes after a BGM change (eg after map change or after a fight), the BGM is not audible. It appears to play on mute still though. You can unmute it again by clicking out of the window and back in.
The Savegame is in the Castle Map. When I loaded, the music was already gone. Just click out of the window once and back in. The music should continue. If you go out of the map and back in, the music is muted again

@Mimigris
Copy link

I've mentioned this issue in #2319 but it may be better to list it separately, thank you 👍

It's an issue specifically tied to the use of the Native MIDI output on Windows, and only affects MIDI files.
What I wrote there, in short:
"Partially related so I'm adding it here, but exiting a game with a midi on the title screen and then reopening it from the game browser may have different results (lack of some instruments, incorrect volume of some instruments, lack of music...). This is not major since it will not continue past the title screen and that just putting the window of the game in the background and reopening it will work as a fix for a player. (Opening the settings menu on the title screen in said condition can also cause the issue to happen)."
Why I didn't noticed back then was that this issue also affects tracks that are played outside of the title screen.

@jthyer
Copy link

jthyer commented Feb 7, 2024

I'm running into this exact issue with an RPGMaker 2003 game I'm developing myself and testing in EasyRPG Player. I just tested it on the newest nightly build and confirmed it didn't work there as well. When the player moves between two maps, an event changes the midi music. Sometimes, seemingly randomly, the music won't play, or it will be garbled and only play some of the instruments. I've confirmed that when the music is muted, clicking out of the window and clicking back into it plays the music again. I didn't test that until reading this issue page.

In the easyrpg_log.txt, I see these debug messages:

[2024-02-07 13:56:56] Debug: Starting new game
[2024-02-07 13:56:56] Debug: Loaded Map Map0078.lmu
[2024-02-07 13:56:56] Debug: Tree: 4_3 < 4_1
[2024-02-07 13:56:57] Debug: Fluidsynth: Could not load soundfont.
[2024-02-07 13:56:57] Debug: WildMidi: Could not find configuration file.
[2024-02-07 13:57:00] Debug: Loaded Map Map0071.lmu
[2024-02-07 13:57:00] Debug: Tree: 5_3 < 5_1
[2024-02-07 13:57:03] Debug: Loaded Map Map0064.lmu
[2024-02-07 13:57:03] Debug: Tree: 5_2 < 5_1
...

It seems like there's some kind of issue with Fluidsynth or WildMidi. I don't know why it would break sometimes but not all the time, or why it would unmute just by focusing and unfocusing the window. I've attached a fresh log that just contains me opening the game, moving between maps, and closing the game. Please let me know if there's any other information I can offer to help.

easyrpg_log.txt

@Mimigris
Copy link

Mimigris commented Feb 7, 2024

For the content of your easyrpg_log.txt file, note that Fluidsynth and WildMidi are only optional methods of playing MIDI files (where the user need to manually add files to make them work, hence why it is listed there on your side) and are not related to this issue.

@Ghabry
Copy link
Member

Ghabry commented Mar 25, 2024

This appears to be some "race condition" when changing the MIDI. Sometimes the music plays, sometimes it doesn't. So likely depends on the state of the previous MIDI :/

@Ghabry Ghabry added this to the 0.8.1 milestone Apr 14, 2024
Ghabry added a commit to Ghabry/easyrpg-player that referenced this issue May 13, 2024
Ghabry added a commit to Ghabry/easyrpg-player that referenced this issue May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants