예제 #1
0
        public void Pause()
        {
#if WINRT
            _voice.Stop();
            _paused = true;
#else
            if (_sound != null)
            {
#if ANDROID
                _sound.Pause(_streamId);
#else
                _sound.Pause();
#endif
                soundState = SoundState.Paused;
            }
#endif
        }
예제 #2
0
 public void Pause()
 {
     if (complexSound)
     {
         foreach (XactClip clip in soundClips)
         {
             clip.Pause();
         }
     }
     else
     {
         wave.Pause();
     }
 }
예제 #3
0
 public void Pause()
 {
     for (int i = 0; i < _tracks.Length; i++)
     {
         Sound _sound = GetSound(i);
         if (_sound != null)
         {
             _sound.Pause();
         }
     }
     if (mUpdating)
     {
         mUpdating = false;
         _player.mData.bank.instances.Remove(this);
     }
 }
예제 #4
0
 public void Pause()
 {
     _sound.Pause();
     _paused = true;
 }
예제 #5
0
 public override void Pause()
 {
     wave.Pause();
 }