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

◆ PlayTrackedSound() [1/2]

static SlotId Terraria.Audio.SoundEngine.PlayTrackedSound ( SoundStyle style)
inlinestatic

Definition at line 131 of file SoundEngine.cs.

132 {
133 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
134 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
135 if (Main.dedServ || !IsAudioSupported)
136 {
137 return SlotId.Invalid;
138 }
139 return SoundPlayer.Play(style);
140 }
static SoundPlayer SoundPlayer
static readonly SlotId Invalid
Definition SlotId.cs:5

References Terraria.Main.dedServ, ReLogic.Utilities.SlotId.Invalid, Terraria.Audio.SoundEngine.IsAudioSupported, and Terraria.Audio.SoundPlayer.Play().