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