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

            controller.PauseSound(soundBuffer);
            soundState = SoundState.Paused;
        }