Exemple #1
0
 // Plays the specified sound effect.
 public static SoundInstance PlaySound(Sound sound, bool looped, float volume = 1.0f, float pitch = 0.0f, float pan = 0.0f, bool muted = false)
 {
     return(sound.Play(looped, volume, pitch, pan, muted));
 }
Exemple #2
0
 // Plays the specified sound effect.
 public static SoundInstance PlaySound(Sound sound, bool looped = false)
 {
     return(sound.Play(looped));
 }