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

◆ PlaySound() [1/4]

static SoundEffectInstance Terraria.Audio.SoundEngine.PlaySound ( int type,
int x = -1,
int y = -1,
int Style = 1,
float volumeScale = 1f,
float pitchOffset = 0f )
inlinestatic

Definition at line 90 of file SoundEngine.cs.

91 {
92 if (Main.dedServ || !IsAudioSupported)
93 {
94 return null;
95 }
96 return LegacySoundPlayer.PlaySound(type, x, y, Style, volumeScale, pitchOffset);
97 }
static LegacySoundPlayer LegacySoundPlayer

References Terraria.Main.dedServ, Terraria.Audio.SoundEngine.IsAudioSupported, Terraria.Audio.LegacySoundPlayer.PlaySound(), and System.type.