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

Inherits Terraria.Audio.ASoundEffectBasedAudioTrack.

Public Member Functions

 WAVAudioTrack (Stream stream)
 
override void Dispose ()
 
override void Reuse ()
 
- Public Member Functions inherited from Terraria.Audio.ASoundEffectBasedAudioTrack
abstract void Dispose ()
 
void Pause ()
 
void Play ()
 
void Resume ()
 
abstract void Reuse ()
 
void SetVariable (string variableName, float value)
 
void Stop (AudioStopOptions options)
 
void Update ()
 
void Pause ()
 
void Play ()
 
void Resume ()
 
void Reuse ()
 
void SetVariable (string variableName, float value)
 
void Stop (AudioStopOptions options)
 
void Update ()
 

Protected Member Functions

override void ReadAheadPutAChunkIntoTheBuffer ()
 
- Protected Member Functions inherited from Terraria.Audio.ASoundEffectBasedAudioTrack
void CreateSoundEffect (int sampleRate, AudioChannels channels)
 
void PrepareBuffer ()
 
virtual void PrepareToPlay ()
 
virtual void ReadAheadPutAChunkIntoTheBuffer ()
 
void ResetBuffer ()
 

Additional Inherited Members

- Protected Attributes inherited from Terraria.Audio.ASoundEffectBasedAudioTrack
byte[] _bufferToSubmit = new byte[4096]
 
DynamicSoundEffectInstance _soundEffectInstance
 
float[] _temporaryBuffer = new float[2048]
 
- Static Protected Attributes inherited from Terraria.Audio.ASoundEffectBasedAudioTrack
const int bufferCountPerSubmit = 2
 
const int bufferLength = 4096
 
const int buffersToCoverFor = 8
 
- Properties inherited from Terraria.Audio.ASoundEffectBasedAudioTrack
bool IsPaused [get]
 
bool IsPlaying [get]
 
bool IsStopped [get]
 
- Properties inherited from Terraria.Audio.IAudioTrack
bool IsPaused [get]
 
bool IsPlaying [get]
 
bool IsStopped [get]
 

Member Function Documentation

◆ Dispose()

override void Terraria.Audio.WAVAudioTrack.Dispose ( )
virtual

◆ ReadAheadPutAChunkIntoTheBuffer()

override void Terraria.Audio.WAVAudioTrack.ReadAheadPutAChunkIntoTheBuffer ( )
protectedvirtual

◆ Reuse()

override void Terraria.Audio.WAVAudioTrack.Reuse ( )
virtual