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

Inherits ASoundEffectBasedAudioTrack.

Public Member Functions

 OGGAudioTrack (Stream streamToRead)
 
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 OGGAudioTrack.Dispose ( )
virtual

◆ ReadAheadPutAChunkIntoTheBuffer()

override void OGGAudioTrack.ReadAheadPutAChunkIntoTheBuffer ( )
protectedvirtual

Reimplemented from ASoundEffectBasedAudioTrack.

◆ Reuse()

override void OGGAudioTrack.Reuse ( )
virtual