Ejemplo n.º 1
0
 public void Stop(SoundChannel soundChannel)
 {
     if ((soundChannel != null) && (soundChannel.Channel != null))
     {
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }
Ejemplo n.º 2
0
 public void Stop(SoundChannel soundChannel)
 {
     if (soundChannel != null && soundChannel.Channel != null)
     {
         soundChannel.Channel.stop();
         soundChannel.m_ptimer.Stop();
         soundChannel.CancelFades();
     }
 }
Ejemplo n.º 3
0
 public void Stop(SoundChannel soundChannel, int fadeDuration)
 {
     if (((soundChannel != null) && (soundChannel.Channel != null)) && ((fadeDuration != 0) && soundChannel.IsPlaying))
     {
         soundChannel.ImmediateFade(fadeDuration);
         soundChannel.WaitOnFade();
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }
Ejemplo n.º 4
0
 public void Stop(SoundChannel soundChannel, int fadeDuration)
 {
     if (soundChannel != null && soundChannel.Channel != null)
     {
         // Sound has to be playing for the volume to be set (fmod rule)
         if (fadeDuration != 0 && soundChannel.IsPlaying)
         {
             soundChannel.ImmediateFade(fadeDuration);
             soundChannel.WaitOnFade();
             soundChannel.Channel.stop();
             soundChannel.CancelFades();
         }
     }
 }
Ejemplo n.º 5
0
 public void Stop(SoundChannel soundChannel, int fadeDuration)
 {
     if(soundChannel != null && soundChannel.Channel != null) {
         // Sound has to be playing for the volume to be set (fmod rule)
         if(fadeDuration != 0 && soundChannel.IsPlaying ) {
             soundChannel.ImmediateFade(fadeDuration);
             soundChannel.WaitOnFade();
             soundChannel.Channel.stop();
             soundChannel.m_ptimer.Stop();
             soundChannel.CancelFades();
         }
     }
 }
Ejemplo n.º 6
0
 public void Stop(SoundChannel soundChannel)
 {
     if(soundChannel != null && soundChannel.Channel != null) {
         soundChannel.Channel.stop();
         soundChannel.m_ptimer.Stop();
         soundChannel.CancelFades();
     }
 }
Ejemplo n.º 7
0
 public void Stop(SoundChannel soundChannel, int fadeDuration)
 {
     if (((soundChannel != null) && (soundChannel.Channel != null)) && ((fadeDuration != 0) && soundChannel.IsPlaying))
     {
         soundChannel.ImmediateFade(fadeDuration);
         soundChannel.WaitOnFade();
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }
Ejemplo n.º 8
0
 public void Stop(SoundChannel soundChannel)
 {
     if ((soundChannel != null) && (soundChannel.Channel != null))
     {
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }