quasar098 / midi-playground

square bounce
GNU General Public License v3.0
211 stars 65 forks source link

Music not restarting after starting level on linux #86

Open Coobik1234 opened 7 months ago

Coobik1234 commented 7 months ago

The program runs perfectly, (after some tweaks) without any problems. But the music doesn't start again. To start the program, I copied the "assets" folder into the "assets" folder. For some reason the program tries to find "assets" inside of "assets". I can change the configs, everything works fine. But as soon as the level starts, the music doesn't play from the beginning, instead it simply continues playing from where it stopped playing in the song selector.

https://github.com/quasar098/midi-playground/assets/110892785/6eb4659e-4511-4a39-9bb4-6612e8fd95ac

quasar098 commented 7 months ago

strange, this is an internal issue with pygame most likely, but i will try to find a workaround

Coobik1234 commented 6 months ago

I switched to Arch Linux. There, I got the program to work, but it couldn't play any .mid files. Everything else worked perfectly. Songs that used the .mp3 format played perfectly, the music restarted when needed. But all the .mid files crashed because of pygame.error: Couldn't open timidity.cfg I converted some .mid files to .mp3 and changed their metadata.json files.

quasar098 commented 6 months ago

timidity errors also have happened before i have seen issues opened for them and idk how to really deal with them

Coobik1234 commented 6 months ago

Maybe use FluidSynth instead?

quasar098 commented 6 months ago

idk anything about the internals of pygame and how it deals with midi; this seems more like a question for the pygame community rather, because i do not know how to even start to debug this