public void Pause() { //HACK: Stopping or pausing NSSound is really slow (~200ms), don't if the sample is short :/ if (Duration > 2) { _audioPlayer.Pause(); } }
public void Pause() { //HACK: Stopping or pausing NSSound is really slow (~200ms), don't if the sample is short :/ //Uncomment the if clause if you have trouble pausing sounds. //if (Duration > 2) { _audioPlayer.Pause(); //} }
partial void PlayPause(NSObject sender) { if (isPaused) { sound.Resume(); isPaused = false; } else { sound.Pause(); isPaused = true; } }
public void Pause() { _audioPlayer.Pause(); }