Page 1 of 1
GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sat Nov 12, 2022 6:01 pm
by Doomguy 2000
I've noticed in the recent update to GZDoom that when I launch Hexen or other wads that have startup music, it doesn't seem to play. It's only at the very beginning it plays music and when it goes full screen or windowed at the desired resolution it does this.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Fri Nov 18, 2022 4:55 pm
by EmeraldCoasttt
I'm experiencing this issue as well
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sat Nov 19, 2022 10:34 am
by Marisa the Magician
On my side I do have a different issue, where the music starts, and then very shortly after, the startup screen begins rendering AND the music starts over. Only seems to happen with some music formats, though.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sat Nov 19, 2022 1:27 pm
by Graf Zahl
That sounds like something blocks the music stream callback.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sat Nov 19, 2022 5:49 pm
by Doomguy 2000
All I know is that I didn't mess with the music settings and was working fine in the previous versions of GZDoom but isn't working in this particular version for some reason I can't explain.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sat Nov 19, 2022 7:17 pm
by Chris
Marisa the Magician wrote: ↑Sat Nov 19, 2022 10:34 am
On my side I do have a different issue, where the music starts, and then very shortly after, the startup screen begins rendering AND the music starts over. Only seems to happen with some music formats, though.
That sounds like the engine starts music playback, then something blocks the music thread from running for a moment (long enough for the starting buffer queue to drain/underrun), before it's able to show the start screen when allowing the music thread to update again and restart the audio stream. I could see that happen if you don't have many cores, and the game tries to upload a lot of data to the GPU, or do some other heavy task the prevent user threads from running.
Or maybe something starts the music initially, stops it while preparing data, then starts it again when showing the startup screen. Some formats (like MIDI with a large soundfont) can take a bit of time to load and (re)start, especially on older systems without an SSD.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Sun Nov 20, 2022 4:32 am
by Marisa the Magician
I'm pretty sure my specs are currently top of the line, though. Doubt it's related to that.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Thu Sep 14, 2023 3:17 pm
by Graf Zahl
The problem here is that the CVar::EnableCallbacks call happens right in the middle of the startup sequence and screws things up badly.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Tue Sep 26, 2023 3:25 pm
by Doomguy 2000
If there's no way to fix this issue, what is the alternative when it comes to startup music? It works fine when it starts off as windowed but when it goes into fullscreen is when the music doesn't seem to work.
Re: GZDoom 4.9.0 Startup Music doesn't work properly
Posted: Tue Sep 26, 2023 4:08 pm
by Graf Zahl
It needs to be refactored, but that requires care to do right.