MediaPortal.MusicPlayer.BASS.BassAudioEngine.SwitchToGaplessPlaybackMode C# (CSharp) Méthode

SwitchToGaplessPlaybackMode() public méthode

Switches the Playback to Gapless Used, if playback of a complete Album is started
public SwitchToGaplessPlaybackMode ( ) : void
Résultat void
    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;
      }
    }