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

Public Member Functions

ActiveSoundFindActiveSound (in SoundStyle style)
 
void PauseAll ()
 
SlotId Play (in SoundStyle style, Vector2? position=null, SoundUpdateCallback? updateCallback=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 ()