
(Cross)fading music
Moderator: GZDoom Developers
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
(Cross)fading music
I have seen that this has been suggested already a million times, but why hasn't it been added yet? I mean it's 2015 now and not 1994, FMOD seems to be able to handle this. 

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49235
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: (Cross)fading music
But ZDoom's music system doesn't!
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: (Cross)fading music
What is so complicated about fading music in and out? I am just curious.
Re: (Cross)fading music
Two music backends would need to be running at once. Furthermore, some midi ports can only operate a single connection at a time. Since ZDoom supports basically any music backend under the sun almost transparently, this becomes a logistical nightmare.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49235
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: (Cross)fading music
... not to mention the case where two different and incompatible music backends need to mix their output.
Re: (Cross)fading music
By the way, what's the most complicated thing about making the Music system show music's position? I still hope that one day it will be possible to make tracker music jump to a certain pattern after current pattern ends/after certain event (in the song).
Re: (Cross)fading music
The depends on what you mean by "Show the current position". Showing is easy, as far as FMod is concerned (although MIDI positions seem a little ambiguous by the looks of it). How you expect to relate that back to setting it in a synchronous environment where music first and foremost runs in an entirely different thread, however, raises some questions.
I also don't know what controls the other sound libraries expose to this, including OpenAL and DUMB.
I also don't know what controls the other sound libraries expose to this, including OpenAL and DUMB.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49235
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: (Cross)fading music
Define 'music's position'. Some formats can loop over certain sections a few times, others don't loop back to the start and so on, and so on. The only reliable thing would be time from playback start, everything else is not really doable unless you have a strictly linear music track, but that info is not known at all.
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: (Cross)fading music
I have the bad feeling that my understanding of programming isn't enough to get the problem
Thanks for trying though 

