Fading in, fading out, mixing together. I am thinking about 3 options:
fadeOutTime
fadeInTime
mixTime. this is the time where both are played together. i.e. curSong.endTime-mixTime = nextSong.startTime
The fading itself is just linear? At start of fadeOut, it is 100% and at the end, it is 0%. Or maybe some sigmoid function? Or Sine? Or configurable? Maybe the dB linear, so it becomes logarithmic.
Fading in, fading out, mixing together. I am thinking about 3 options:
The fading itself is just linear? At start of fadeOut, it is 100% and at the end, it is 0%. Or maybe some sigmoid function? Or Sine? Or configurable? Maybe the dB linear, so it becomes logarithmic.
Maybe also MixRamp (see also here)? mpd crossfade code
cross_fade_calc
with MixRamp info /mixramp_interpolate
, initial mpd MixRamp commit, mpd pcm mixing code, mixramp.c analyzing / tagger code