VGMStream: Clear sample buffer, just in case
parent
71dd68036b
commit
6c8c807781
|
@ -338,6 +338,8 @@ static NSString* get_description_tag(const char* description, const char *tag, c
|
|||
if (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 );
|
||||
|
||||
framesRead += frames_to_do;
|
||||
|
|
Loading…
Reference in New Issue