Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
WAVAudioTrack (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) |
Static Private Member Functions | |
static void | SkipJunk (BinaryReader reader, int chunkSize) |
Private Attributes | |
long | _streamContentStartIndex = -1L |
Stream | _stream |
int | _sampleRate |
AudioChannels | _channels |
Static Private Attributes | |
const uint | JUNK = 1263424842u |
const uint | FMT = 544501094u |
Definition at line 6 of file WAVAudioTrack.cs.