arnaud-carre / LSPlayer

Fastest Amiga Module player ever
MIT License
97 stars 8 forks source link

Added optional fade out support. #10

Closed asimilon closed 5 months ago

asimilon commented 1 year ago

Hi Arnaud,

I wanted to be able to fade out my music in an upcoming production, so I hacked in fade support.

Basically storing the current volume from each tick which of course incurs a little overhead, and then a separate routine to call if fading actually needed that is a bit more heavy.

I kept it in a separate file so as not to muddy the code with IF directives, but did add some IFD in the CIA player (although I haven't actually tested that version, I assume it will only work if including the _fade version of the player before the _cia file).

Contributing it back as might be useful for other people who want the same thing I did. :)

Cheers, Rich^Defekt