Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadAheadPutAChunkIntoTheBuffer()

override void Terraria.Audio.WAVAudioTrack.ReadAheadPutAChunkIntoTheBuffer ( )
inlineprotectedvirtual

Reimplemented from Terraria.Audio.ASoundEffectBasedAudioTrack.

Definition at line 67 of file WAVAudioTrack.cs.

68 {
69 byte[] bufferToSubmit = _bufferToSubmit;
70 if (_stream.Read(bufferToSubmit, 0, bufferToSubmit.Length) < 1)
71 {
72 Stop(AudioStopOptions.Immediate);
73 }
74 else
75 {
77 }
78 }
int Read(byte[] buffer, int offset, int count)

References Terraria.Audio.ASoundEffectBasedAudioTrack._bufferToSubmit, Terraria.Audio.ASoundEffectBasedAudioTrack._soundEffectInstance, Terraria.Audio.WAVAudioTrack._stream, System.IO.Stream.Read(), and Terraria.Audio.ASoundEffectBasedAudioTrack.Stop().