tModLoader v2024.02
A mod to make and play Terraria mods
MP3AudioTrack Class Reference

Inherits ASoundEffectBasedAudioTrack.

Public Member Functions

 MP3AudioTrack (Stream stream)
 
override void Dispose ()
 
override void Reuse ()
 
- Public Member Functions inherited from 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 ASoundEffectBasedAudioTrack
void CreateSoundEffect (int sampleRate, AudioChannels channels)
 
void PrepareBuffer ()
 
virtual void PrepareToPlay ()
 
virtual void ReadAheadPutAChunkIntoTheBuffer ()
 
void ResetBuffer ()
 

Additional Inherited Members

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

Member Function Documentation

◆ Dispose()

override void MP3AudioTrack.Dispose ( )
virtual

◆ ReadAheadPutAChunkIntoTheBuffer()

override void MP3AudioTrack.ReadAheadPutAChunkIntoTheBuffer ( )
protectedvirtual

Reimplemented from ASoundEffectBasedAudioTrack.

◆ Reuse()

override void MP3AudioTrack.Reuse ( )
virtual