The moveToFadeOutTrack() function was introduced many years ago to fix
"sound skipping a bit when a fade out track starts". Unfortunately,
while this may have worked flawlessly back then it causes crashes in
certain cases now.
The point of this is to avoid the crash for the upcoming release. A more
long-term solution should be in the works.
Add a comment about the input/output range of:
Imuse::setPan (0 ... 127)
Imuse::getPan (-127 ... 127).
The value is stored internally as 1000 * input range
(0 ... 127000), so a value of 6400 is not possible:
int getPan() const { return (pan != 6400) ? 2 * (pan / 1000) - 127 : 0;
}
Changing to 64000 which roughly corresponds with a balance of +/- 0.