private void ViewOnPlayPressed(object sender, EventArgs eventArgs)
 {
     if (_model.CurrentBeatmap != null)
     {
         if (musicPlayer.IsPaused)
         {
             musicPlayer.Resume();
         }
         else
         {
             PlayBeatmap(_model.CurrentBeatmap);
         }
     }
 }
Exemple #2
0
 public void Resume()
 {
     musicPlayer.Resume();
 }
Exemple #3
0
 /// <summary>
 ///     Resume playing the current track.
 /// </summary>
 /// <exception cref="InvalidPlayerException">Thrown if not connected to a voice channel.</exception>
 /// <exception cref="InvalidTrackException">Thrown if there is no track playing.</exception>
 /// <exception cref="InvalidOperationException">Thrown if the player is not paused.</exception>
 public async Task Resume()
 {
     await _player.Resume();
 }