ModelViewer.Sound.SoundManager.Pause C# (CSharp) Method

Pause() public method

public Pause ( ) : void
return void
        public void Pause()
        {
            lock (mutex)
            {
                if (sourceVoice != null)
                {
                    if (isPaused)
                    {
                        sourceVoice.Start();
                        isPaused = false;
                    }
                    else
                    {
                        sourceVoice.Stop();
                        isPaused = true;
                    }
                }
            }
        }