예제 #1
0
 public static bool IsSoundPlaying(Sound sound)
 {
     return IsChannelPlaying(sound.Channel);
 }
예제 #2
0
 public static void ChangeVolume(Sound sound, float value)
 {
     AL.Source(sound.Channel, ALSourcef.Gain, _masterVolume * value);
       //Al.alSourcef(sound.Channel, Al.AL_GAIN, _masterVolume * value);
 }
예제 #3
0
 public static int CompareTo(Sound left, string right)
 {
     return left.Id.CompareTo(right);
 }
예제 #4
0
 public static void StopSound(Sound sound)
 {
     if (sound.Channel == -1)
       {
     return;
       }
       AL.SourceStop(sound.Channel);
       //Al.alSourceStop(sound.Channel);
 }
예제 #5
0
 public static int CompareTo(Sound left, Sound right)
 {
     return left.Id.CompareTo(right.Id);
 }