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

Inherits Terraria.Audio.IAudioSystem, and IDisposable.

Public Member Functions

void Dispose ()
 
bool IsTrackPlaying (int trackIndex)
 
void LoadCue (int cueIndex, string cueName)
 
void LoadFromSources ()
 
void PauseAll ()
 
IEnumerator PrepareWaveBank ()
 
void ResumeAll ()
 
void Update ()
 
void UpdateAmbientCueState (int i, bool gameIsActive, ref float trackVolume, float systemVolume)
 
void UpdateAmbientCueTowardStopping (int i, float stoppingSpeed, ref float trackVolume, float systemVolume)
 
void UpdateAudioEngine ()
 
void UpdateCommonTrack (bool active, int i, float totalVolume, ref float tempFade)
 
void UpdateCommonTrackTowardStopping (int i, float totalVolume, ref float tempFade, bool isMainTrackAudible)
 
void UpdateMisc ()
 
void UseSources (List< IContentSource > sourcesFromLowestToHighest)
 
bool IsTrackPlaying (int trackIndex)
 
void LoadCue (int cueIndex, string cueName)
 
void LoadFromSources ()
 
void PauseAll ()
 
IEnumerator PrepareWaveBank ()
 
void ResumeAll ()
 
void Update ()
 
void UpdateAmbientCueState (int i, bool gameIsActive, ref float trackVolume, float systemVolume)
 
void UpdateAmbientCueTowardStopping (int i, float stoppingSpeed, ref float trackVolume, float systemVolume)
 
void UpdateAudioEngine ()
 
void UpdateCommonTrack (bool active, int i, float totalVolume, ref float tempFade)
 
void UpdateCommonTrackTowardStopping (int i, float totalVolume, ref float tempFade, bool isMainTrackAudible)
 
void UpdateMisc ()
 
void UseSources (List< IContentSource > sources)
 

Public Attributes

IAudioTrack[] AudioTracks
 
Dictionary< int, IAudioTrackDefaultTrackByIndex
 
AudioEngine Engine
 
List< IContentSource > FileSources
 
int MusicReplayDelay
 
SoundBank SoundBank
 
Dictionary< int, string > TrackNamesByIndex
 
WaveBank WaveBank
 

Member Function Documentation

◆ IsTrackPlaying()

bool Terraria.Audio.LegacyAudioSystem.IsTrackPlaying ( int  trackIndex)

◆ LoadCue()

void Terraria.Audio.LegacyAudioSystem.LoadCue ( int  cueIndex,
string  cueName 
)

◆ LoadFromSources()

void Terraria.Audio.LegacyAudioSystem.LoadFromSources ( )

◆ PauseAll()

void Terraria.Audio.LegacyAudioSystem.PauseAll ( )

◆ PrepareWaveBank()

IEnumerator Terraria.Audio.LegacyAudioSystem.PrepareWaveBank ( )

◆ ResumeAll()

void Terraria.Audio.LegacyAudioSystem.ResumeAll ( )

◆ Update()

void Terraria.Audio.LegacyAudioSystem.Update ( )

◆ UpdateAmbientCueState()

void Terraria.Audio.LegacyAudioSystem.UpdateAmbientCueState ( int  i,
bool  gameIsActive,
ref float  trackVolume,
float  systemVolume 
)

◆ UpdateAmbientCueTowardStopping()

void Terraria.Audio.LegacyAudioSystem.UpdateAmbientCueTowardStopping ( int  i,
float  stoppingSpeed,
ref float  trackVolume,
float  systemVolume 
)

◆ UpdateAudioEngine()

void Terraria.Audio.LegacyAudioSystem.UpdateAudioEngine ( )

◆ UpdateCommonTrack()

void Terraria.Audio.LegacyAudioSystem.UpdateCommonTrack ( bool  active,
int  i,
float  totalVolume,
ref float  tempFade 
)

◆ UpdateCommonTrackTowardStopping()

void Terraria.Audio.LegacyAudioSystem.UpdateCommonTrackTowardStopping ( int  i,
float  totalVolume,
ref float  tempFade,
bool  isMainTrackAudible 
)

◆ UpdateMisc()

void Terraria.Audio.LegacyAudioSystem.UpdateMisc ( )

◆ UseSources()

void Terraria.Audio.LegacyAudioSystem.UseSources ( List< IContentSource >  sourcesFromLowestToHighest)