public void SwitchToGaplessPlaybackMode()
{
if (_playBackType == (int)PlayBackType.CROSSFADE)
{
// Store the current settings, so that when the album playback is completed, we can switch back to the default
if (_savedPlayBackType == -1)
{
_savedPlayBackType = _playBackType;
}
Log.Info("BASS: Playback of complete Album starting. Switching playbacktype from {0} to {1}",
Enum.GetName(typeof(PlayBackType), _playBackType),
Enum.GetName(typeof(PlayBackType), (int)PlayBackType.GAPLESS));
_playBackType = (int)PlayBackType.GAPLESS;
Config.CrossFadeIntervalMs = 0;
}
}