tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Audio.SoundPlayer Class Reference

Public Member Functions

ActiveSound FindActiveSound (in SoundStyle style)
 
void PauseAll ()
 
SlotId Play (in SoundStyle style, Vector2? position=null)
 
void Reload ()
 
void ResumeAll ()
 
void StopAll ()
 
void StopAll (in SoundStyle style)
 
bool TryGetActiveSound (SlotId id, [NotNullWhen(true)] out ActiveSound? result)
 Safely attempts to get a currently playing ActiveSound instance, tied to the provided SlotId.
 
void Update ()