mapinfo/gameinfo option to allow title music to loop

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

mapinfo/gameinfo option to allow title music to loop

Post by Marisa the Magician »

There may be cases where the music played on the title screen could be actually meant to be looped. Currently the only way to work around this is to use a titlemap, but some modders might not want to go through the hassle of setting one up just for a static image with music.
User avatar
Sir Robin
Posts: 537
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

Re: mapinfo/gameinfo option to allow title music to loop

Post by Sir Robin »

I've thought about this too. There are a few different places to specify music - title, map, intermission, endgame block, etc, and all have slightly different formats and behaviors. It would be nice to have these standardize, but I don't know how to do that without breaking backward compatibility.

I'd suggest a new format something like this:
music="intro","looper"
That would play the intro song until it finishes and then play the looper song on repeat.
If you only wanted 1 play through or wanted only a looped song, you just omit the one you don't want. Like:

Code: Select all

//these would only play the song once
music="song"
music="song",""

//these would play it on loop
music="","song"
music=,"song"
One problem with that is support for music file with multiple tracks. but for that I'd suggest a MUSICDEF file, kinda like the sndinfo file, where you map a logical music name to a file and track number.

Return to “Feature Suggestions [GZDoom]”