tModLoader v2024.10
A mod to make and play Terraria mods
LegacyAudioSystem Class Reference

Inherits 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 LegacyAudioSystem.IsTrackPlaying ( int  trackIndex)

Implements IAudioSystem.

◆ LoadCue()

void LegacyAudioSystem.LoadCue ( int  cueIndex,
string  cueName 
)

Implements IAudioSystem.

◆ LoadFromSources()

void LegacyAudioSystem.LoadFromSources ( )

Implements IAudioSystem.

◆ PauseAll()

void LegacyAudioSystem.PauseAll ( )

Implements IAudioSystem.

◆ PrepareWaveBank()

IEnumerator LegacyAudioSystem.PrepareWaveBank ( )

Implements IAudioSystem.

◆ ResumeAll()

void LegacyAudioSystem.ResumeAll ( )

Implements IAudioSystem.

◆ Update()

void LegacyAudioSystem.Update ( )

Implements IAudioSystem.

◆ UpdateAmbientCueState()

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

Implements IAudioSystem.

◆ UpdateAmbientCueTowardStopping()

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

Implements IAudioSystem.

◆ UpdateAudioEngine()

void LegacyAudioSystem.UpdateAudioEngine ( )

Implements IAudioSystem.

◆ UpdateCommonTrack()

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

Implements IAudioSystem.

◆ UpdateCommonTrackTowardStopping()

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

Implements IAudioSystem.

◆ UpdateMisc()

void LegacyAudioSystem.UpdateMisc ( )

Implements IAudioSystem.

◆ UseSources()

void LegacyAudioSystem.UseSources ( List< IContentSource >  sourcesFromLowestToHighest)

Implements IAudioSystem.