Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Audio.MP3AudioTrack Class Reference

Public Member Functions

 MP3AudioTrack (Stream stream)
 
override void Reuse ()
 
override void Dispose ()
 
void Update ()
 
void Stop (AudioStopOptions options)
 
void Play ()
 
void Pause ()
 
void SetVariable (string variableName, float value)
 
void Resume ()
 

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

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

Properties

bool IsPlaying [get]
 
bool IsStopped [get]
 
bool IsPaused [get]
 

Private Member Functions

void _soundEffectInstance_BufferNeeded (object sender, EventArgs e)
 
float ReMapVolumeToMatchXact (float musicVolume)
 

Private Attributes

Stream _stream
 
MP3Stream _mp3Stream
 
int _sampleRate
 
AudioChannels _channels
 

Detailed Description

Definition at line 7 of file MP3AudioTrack.cs.


The documentation for this class was generated from the following file: