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

mapinfo/gameinfo option to allow title music to loop

Postby Marisa the Magician » Wed Mar 30, 2022 5:46 pm

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
Marisa the Magician
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Sir Robin » Sun May 01, 2022 7:08 pm

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 allExpand view
//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.
User avatar
Sir Robin
 
Joined: 22 Dec 2021
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel (Modern GZDoom)


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests