public void Pause() { if (hasSourceId) { controller.PauseSound(soundBuffer); soundState = SoundState.Paused; } }
private void PlatformPause() { if (!hasSourceId || soundState != SoundState.Playing) { return; } controller.PauseSound(soundBuffer); soundState = SoundState.Paused; }