コード例 #1
0
 public void Stop()
 {
     lock (sound)
     {
         sound.Stop();
         RefreshPlaybackState();
     }
 }
コード例 #2
0
        public void Stop()
        {
            lock (sound)
            {
                if (sound.CurrentSubSoundIndex != -1 && sound.CurrentSubSound != null)
                {
                    sound.CurrentSubSound.Stop();
                }
                else
                {
                    sound.Stop();
                }

                RefreshPlaybackState();
            }
        }