Hi, what would be the best way to implement crossfading between two instances of sf::Music - or is there a library based on SFML which provides such stuff - as Thor does for other purposes?
My basic idea would be: having two instances of sf::Music. One holds the current track, the other the new track. Then fading can be done by changing the music's volume per frame. So the current music fades out by decreasing volume and the new music fades in by increasing music. After fading, the old instance (which played the previous track) will be used as "fade-in"-instance when fading again - and vice versa.
Of course, this change might be linear or not, depending on the desired result. But would this be the most suitable way?
Kind regards
Glocke