Exemplo n.º 1
0
 public static SoundEffectInstance PlaySound(
     LegacySoundStyle type,
     int x = -1,
     int y = -1)
 {
     return(type == null ? (SoundEffectInstance)null : SoundEngine.PlaySound(type.SoundId, x, y, type.Style, type.Volume, type.GetRandomPitch()));
 }
Exemplo n.º 2
0
 public static SoundEffectInstance PlaySound(LegacySoundStyle type, int x = -1, int y = -1)
 {
     if (type == null)
     {
         return(null);
     }
     return(PlaySound(type.SoundId, x, y, type.Style, type.Volume, type.GetRandomPitch()));
 }
Exemplo n.º 3
0
 public static SoundEffectInstance PlaySound(LegacySoundStyle type, Vector2 position)
 {
     return(PlaySound(type, (int)position.X, (int)position.Y));
 }