internal void PrepareMediaPlayer() { if (CurrentMusic == null) { CurrentMusic = this; } else if (CurrentMusic != this) { CurrentMusic.Pause(); CurrentMusic = this; } MediaPlayer.IsRepeating = IsLooped; MediaPlayer.Volume = Volume * MasterVolume; }
public void Pause(TimeSpan duration) => CurrentMusic?.Pause(duration);
public void Pause() => CurrentMusic?.Pause();