ModelViewer.Sound.SoundManager.Pause C# (CSharp) 메소드

Pause() 공개 메소드

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