Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PlaySound() [3/4]

static SoundEffectInstance Terraria.Audio.SoundEngine.PlaySound ( LegacySoundStyle type,
int x = -1,
int y = -1 )
inlinestatic

Definition at line 81 of file SoundEngine.cs.

82 {
83 if (type == null)
84 {
85 return null;
86 }
87 return PlaySound(type.SoundId, x, y, type.Style, type.Volume, type.GetRandomPitch());
88 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.Audio.SoundEngine.PlaySound(), and System.type.