ICEREG1992 / fungwafrenzy

Modern Offline Client for FMV Cult Classic "Fung-Wa Frenzy"
MIT License
0 stars 0 forks source link

Allow fade-ins from any volume level #35

Open ICEREG1992 opened 1 month ago

ICEREG1992 commented 1 month ago

Describe the addition

Right now, to fade between music tracks, we assume the fader is already at the volume we want to start from (0 or 100) and fade from there. For a true implementation, we should have it read the current fader level and fade from that.

Context

Because of the way we call setFader in setTimeout blocks, I had a lot of trouble trying to get the correct fader value again when we want to fade back in. Honestly, because we should only ever be calling setFader when the fader is at 100 or 0, finding a solution to this isn't imperative, and will only matter for extremely short (<.5s) video lengths.

Proposed Solution