tModLoader v2025.03
A mod to make and play Terraria mods
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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 ()