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. :)
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