Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Audio.ASoundEffectBasedAudioTrack Class Referenceabstract

Public Member Functions

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

Protected Member Functions

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

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

int _sampleRate
 
AudioChannels _channels
 

Detailed Description

Definition at line 6 of file ASoundEffectBasedAudioTrack.cs.


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