(Cross)fading music

Moderator: GZDoom Developers

Post Reply
User avatar
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

Post by Tormentor667 »

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. :(
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: (Cross)fading music

Post by Graf Zahl »

But ZDoom's music system doesn't!
User avatar
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

Post by Tormentor667 »

What is so complicated about fading music in and out? I am just curious.
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: (Cross)fading music

Post by edward850 »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: (Cross)fading music

Post by Graf Zahl »

... not to mention the case where two different and incompatible music backends need to mix their output.
mallo
Posts: 1112
Joined: Sat May 22, 2010 12:49 pm

Re: (Cross)fading music

Post by mallo »

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).
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: (Cross)fading music

Post by edward850 »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: (Cross)fading music

Post by Graf Zahl »

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.
User avatar
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

Post by Tormentor667 »

I have the bad feeling that my understanding of programming isn't enough to get the problem :D Thanks for trying though :)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”