Beispiel #1
0
 public void Stop(SoundChannel soundChannel)
 {
     if ((soundChannel != null) && (soundChannel.Channel != null))
     {
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }
Beispiel #2
0
 public void Stop(SoundChannel soundChannel)
 {
     if (soundChannel != null && soundChannel.Channel != null)
     {
         soundChannel.Channel.stop();
         soundChannel.m_ptimer.Stop();
         soundChannel.CancelFades();
     }
 }
Beispiel #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();
     }
 }
 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();
         }
     }
 }
Beispiel #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();
         }
     }
 }
Beispiel #6
0
 public void Stop(SoundChannel soundChannel)
 {
     if(soundChannel != null && soundChannel.Channel != null) {
         soundChannel.Channel.stop();
         soundChannel.m_ptimer.Stop();
         soundChannel.CancelFades();
     }
 }
Beispiel #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();
     }
 }
Beispiel #8
0
 public void Stop(SoundChannel soundChannel)
 {
     if ((soundChannel != null) && (soundChannel.Channel != null))
     {
         soundChannel.Channel.stop();
         soundChannel.CancelFades();
     }
 }