Exemple #1
0
        internal void PrepareMediaPlayer()
        {
            if (CurrentMusic == null)
            {
                CurrentMusic = this;
            }
            else if (CurrentMusic != this)
            {
                CurrentMusic.Pause();
                CurrentMusic = this;
            }

            MediaPlayer.IsRepeating = IsLooped;
            MediaPlayer.Volume      = Volume * MasterVolume;
        }
Exemple #2
0
 public void Pause(TimeSpan duration) => CurrentMusic?.Pause(duration);
Exemple #3
0
 public void Pause() => CurrentMusic?.Pause();