tModLoader v2024.03
A mod to make and play Terraria mods
LegacySoundPlayer Class Reference

Public Member Functions

 LegacySoundPlayer (IServiceProvider services)
 
void CreateAllSoundInstances ()
 
bool DoesSoundScaleWithAmbientVolume (int soundType)
 
SoundEffect GetTrackableSoundByStyleId (int id)
 
SoundEffectInstance PlaySound (int type, int x=-1, int y=-1, int Style=1, float volumeScale=1f, float pitchOffset=0f)
 
void Reload ()
 
void StopAmbientSounds ()
 

Public Attributes

Asset< SoundEffect > SoundCamera
 
Asset< SoundEffect > SoundChat
 
Asset< SoundEffect >[] SoundCoin = new Asset<SoundEffect>[5]
 
Asset< SoundEffect > SoundCoins
 
Asset< SoundEffect >[] SoundDig = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundDoorClosed
 
Asset< SoundEffect > SoundDoorOpen
 
Asset< SoundEffect > SoundDoubleJump
 
Asset< SoundEffect >[] SoundDrip = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundDrown
 
Asset< SoundEffect >[] SoundFemaleHit = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundGrab
 
Asset< SoundEffect > SoundGrass
 
SoundEffectInstance SoundInstanceCamera
 
SoundEffectInstance SoundInstanceChat
 
SoundEffectInstance[] SoundInstanceCoin = new SoundEffectInstance[5]
 
SoundEffectInstance SoundInstanceCoins
 
SoundEffectInstance[] SoundInstanceDig = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstanceDoorClosed
 
SoundEffectInstance SoundInstanceDoorOpen
 
SoundEffectInstance SoundInstanceDoubleJump
 
SoundEffectInstance[] SoundInstanceDrip = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstanceDrown
 
SoundEffectInstance[] SoundInstanceFemaleHit = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstanceGrab
 
SoundEffectInstance SoundInstanceGrass
 
SoundEffectInstance[] SoundInstanceItem = new SoundEffectInstance[SoundID.ItemSoundCount]
 
SoundEffectInstance[] SoundInstanceLiquid = new SoundEffectInstance[2]
 
SoundEffectInstance SoundInstanceMaxMana
 
SoundEffectInstance[] SoundInstanceMech = new SoundEffectInstance[1]
 
SoundEffectInstance SoundInstanceMenuClose
 
SoundEffectInstance SoundInstanceMenuOpen
 
SoundEffectInstance SoundInstanceMenuTick
 
SoundEffectInstance SoundInstanceMoonlordCry
 
SoundEffectInstance[] SoundInstanceNpcHit = new SoundEffectInstance[SoundID.NPCHitCount]
 
SoundEffectInstance[] SoundInstanceNpcKilled = new SoundEffectInstance[SoundID.NPCDeathCount]
 
SoundEffectInstance SoundInstancePixie
 
SoundEffectInstance[] SoundInstancePlayerHit = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstancePlayerKilled
 
SoundEffectInstance[] SoundInstanceResearch = new SoundEffectInstance[4]
 
SoundEffectInstance[] SoundInstanceRoar = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstanceRun
 
SoundEffectInstance SoundInstanceShatter
 
SoundEffectInstance[] SoundInstanceSplash = new SoundEffectInstance[6]
 
SoundEffectInstance[] SoundInstanceThunder = new SoundEffectInstance[7]
 
SoundEffectInstance[] SoundInstanceTink = new SoundEffectInstance[3]
 
SoundEffectInstance SoundInstanceUnlock
 
SoundEffectInstance[] SoundInstanceZombie = new SoundEffectInstance[131]
 
Asset< SoundEffect >[] SoundItem = new Asset<SoundEffect>[SoundID.ItemSoundCount]
 
Asset< SoundEffect >[] SoundLiquid = new Asset<SoundEffect>[2]
 
Asset< SoundEffect > SoundMaxMana
 
Asset< SoundEffect >[] SoundMech = new Asset<SoundEffect>[1]
 
Asset< SoundEffect > SoundMenuClose
 
Asset< SoundEffect > SoundMenuOpen
 
Asset< SoundEffect > SoundMenuTick
 
Asset< SoundEffect >[] SoundNpcHit = new Asset<SoundEffect>[SoundID.NPCHitCount]
 
Asset< SoundEffect >[] SoundNpcKilled = new Asset<SoundEffect>[SoundID.NPCDeathCount]
 
Asset< SoundEffect > SoundPixie
 
Asset< SoundEffect >[] SoundPlayerHit = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundPlayerKilled
 
Asset< SoundEffect >[] SoundResearch = new Asset<SoundEffect>[4]
 
Asset< SoundEffect >[] SoundRoar = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundRun
 
Asset< SoundEffect > SoundShatter
 
Asset< SoundEffect >[] SoundSplash = new Asset<SoundEffect>[6]
 
Asset< SoundEffect >[] SoundThunder = new Asset<SoundEffect>[7]
 
Asset< SoundEffect >[] SoundTink = new Asset<SoundEffect>[3]
 
Asset< SoundEffect > SoundUnlock
 
Asset< SoundEffect >[] SoundZombie = new Asset<SoundEffect>[131]
 
SoundEffectInstance[] TrackableSoundInstances
 
Asset< SoundEffect >[] TrackableSounds