tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.Audio.ASoundEffectBasedAudioTrack Class Referenceabstract

Inherits Terraria.Audio.IAudioTrack, and IDisposable.

Inherited by Terraria.Audio.MP3AudioTrack, Terraria.Audio.OGGAudioTrack, and Terraria.Audio.WAVAudioTrack.

Public Member Functions

abstract void Dispose ()
void Pause ()
void Play ()
void Resume ()
abstract void Reuse ()
void SetVariable (string variableName, float value)
void Stop (AudioStopOptions options)
void Update ()

Protected Member Functions

void CreateSoundEffect (int sampleRate, AudioChannels channels)
void PrepareBuffer ()
virtual void PrepareToPlay ()
virtual void ReadAheadPutAChunkIntoTheBuffer ()
void ResetBuffer ()

Protected Attributes

byte[] _bufferToSubmit = new byte[4096]
DynamicSoundEffectInstance _soundEffectInstance
float[] _temporaryBuffer = new float[2048]

Static Protected Attributes

const int bufferCountPerSubmit = 2
const int bufferLength = 4096
const int buffersToCoverFor = 8


bool IsPaused [get]
bool IsPlaying [get]
bool IsStopped [get]
- Properties inherited from Terraria.Audio.IAudioTrack
bool IsPaused [get]
bool IsPlaying [get]
bool IsStopped [get]