VGMStream: Clear sample buffer, just in case

CQTexperiment
Christopher Snowhill 2021-10-02 18:47:04 -07:00
parent 71dd68036b
commit 6c8c807781
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ static NSString* get_description_tag(const char* description, const char *tag, c
if (frames_to_do > MAX_BUFFER_SAMPLES) if (frames_to_do > MAX_BUFFER_SAMPLES)
frames_to_do = MAX_BUFFER_SAMPLES; frames_to_do = MAX_BUFFER_SAMPLES;
memset(sample_buffer, 0, frames_to_do * channels * sizeof(sbuf[0]));
render_vgmstream( sample_buffer, frames_to_do, stream ); render_vgmstream( sample_buffer, frames_to_do, stream );
framesRead += frames_to_do; framesRead += frames_to_do;