Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Audio.LegacySoundPlayer Class Reference

Public Member Functions

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

Public Attributes

Asset< SoundEffect >[] SoundDrip = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstanceDrip = new SoundEffectInstance[3]
 
Asset< SoundEffect >[] SoundLiquid = new Asset<SoundEffect>[2]
 
SoundEffectInstance[] SoundInstanceLiquid = new SoundEffectInstance[2]
 
Asset< SoundEffect >[] SoundMech = new Asset<SoundEffect>[1]
 
SoundEffectInstance[] SoundInstanceMech = new SoundEffectInstance[1]
 
Asset< SoundEffect >[] SoundDig = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstanceDig = new SoundEffectInstance[3]
 
Asset< SoundEffect >[] SoundThunder = new Asset<SoundEffect>[7]
 
SoundEffectInstance[] SoundInstanceThunder = new SoundEffectInstance[7]
 
Asset< SoundEffect >[] SoundResearch = new Asset<SoundEffect>[4]
 
SoundEffectInstance[] SoundInstanceResearch = new SoundEffectInstance[4]
 
Asset< SoundEffect >[] SoundTink = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstanceTink = new SoundEffectInstance[3]
 
Asset< SoundEffect >[] SoundCoin = new Asset<SoundEffect>[5]
 
SoundEffectInstance[] SoundInstanceCoin = new SoundEffectInstance[5]
 
Asset< SoundEffect >[] SoundPlayerHit = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstancePlayerHit = new SoundEffectInstance[3]
 
Asset< SoundEffect >[] SoundFemaleHit = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstanceFemaleHit = new SoundEffectInstance[3]
 
Asset< SoundEffectSoundPlayerKilled
 
SoundEffectInstance SoundInstancePlayerKilled
 
Asset< SoundEffectSoundGrass
 
SoundEffectInstance SoundInstanceGrass
 
Asset< SoundEffectSoundGrab
 
SoundEffectInstance SoundInstanceGrab
 
Asset< SoundEffectSoundPixie
 
SoundEffectInstance SoundInstancePixie
 
Asset< SoundEffect >[] SoundItem = new Asset<SoundEffect>[SoundID.ItemSoundCount]
 
SoundEffectInstance[] SoundInstanceItem = new SoundEffectInstance[SoundID.ItemSoundCount]
 
Asset< SoundEffect >[] SoundNpcHit = new Asset<SoundEffect>[58]
 
SoundEffectInstance[] SoundInstanceNpcHit = new SoundEffectInstance[58]
 
Asset< SoundEffect >[] SoundNpcKilled = new Asset<SoundEffect>[SoundID.NPCDeathCount]
 
SoundEffectInstance[] SoundInstanceNpcKilled = new SoundEffectInstance[SoundID.NPCDeathCount]
 
SoundEffectInstance SoundInstanceMoonlordCry
 
Asset< SoundEffectSoundDoorOpen
 
SoundEffectInstance SoundInstanceDoorOpen
 
Asset< SoundEffectSoundDoorClosed
 
SoundEffectInstance SoundInstanceDoorClosed
 
Asset< SoundEffectSoundMenuOpen
 
SoundEffectInstance SoundInstanceMenuOpen
 
Asset< SoundEffectSoundMenuClose
 
SoundEffectInstance SoundInstanceMenuClose
 
Asset< SoundEffectSoundMenuTick
 
SoundEffectInstance SoundInstanceMenuTick
 
Asset< SoundEffectSoundShatter
 
SoundEffectInstance SoundInstanceShatter
 
Asset< SoundEffectSoundCamera
 
SoundEffectInstance SoundInstanceCamera
 
Asset< SoundEffect >[] SoundZombie = new Asset<SoundEffect>[131]
 
SoundEffectInstance[] SoundInstanceZombie = new SoundEffectInstance[131]
 
Asset< SoundEffect >[] SoundRoar = new Asset<SoundEffect>[3]
 
SoundEffectInstance[] SoundInstanceRoar = new SoundEffectInstance[3]
 
Asset< SoundEffect >[] SoundSplash = new Asset<SoundEffect>[6]
 
SoundEffectInstance[] SoundInstanceSplash = new SoundEffectInstance[6]
 
Asset< SoundEffectSoundDoubleJump
 
SoundEffectInstance SoundInstanceDoubleJump
 
Asset< SoundEffectSoundRun
 
SoundEffectInstance SoundInstanceRun
 
Asset< SoundEffectSoundCoins
 
SoundEffectInstance SoundInstanceCoins
 
Asset< SoundEffectSoundUnlock
 
SoundEffectInstance SoundInstanceUnlock
 
Asset< SoundEffectSoundChat
 
SoundEffectInstance SoundInstanceChat
 
Asset< SoundEffectSoundMaxMana
 
SoundEffectInstance SoundInstanceMaxMana
 
Asset< SoundEffectSoundDrown
 
SoundEffectInstance SoundInstanceDrown
 
Asset< SoundEffect >[] TrackableSounds
 
SoundEffectInstance[] TrackableSoundInstances
 

Private Member Functions

void LoadAll ()
 
SoundEffectInstance CreateInstance (Asset< SoundEffect > asset)
 
Asset< SoundEffectLoad (string assetName)
 

Private Attributes

readonly IServiceProvider _services
 
List< SoundEffectInstance > _trackedInstances
 

Detailed Description

Definition at line 12 of file LegacySoundPlayer.cs.


The documentation for this class was generated from the following file: