private void ViewOnPlayPressed(object sender, EventArgs eventArgs)
 {
     if (_model.CurrentBeatmap != null)
     {
         if (musicPlayer.IsPaused)
         {
             musicPlayer.Resume();
         }
         else
         {
             PlayBeatmap(_model.CurrentBeatmap);
         }
     }
 }
Esempio n. 2
0
 public void Resume()
 {
     musicPlayer.Resume();
 }
Esempio n. 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();
 }