示例#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();
 }