public void Pause()
 {
     lock (sound)
     {
         sound.Pause();
         RefreshPlaybackState();
     }
 }
Exemple #2
0
        public void Pause()
        {
            lock (sound)
            {
                if (sound.CurrentSubSoundIndex != -1 && sound.CurrentSubSound != null)
                {
                    sound.CurrentSubSound.Pause();
                }
                else
                {
                    sound.Pause();
                }

                RefreshPlaybackState();
            }
        }