Initialise sample history and step index to 0

This commit is contained in:
Simon Aarons 2020-08-16 13:08:29 +10:00 committed by GitHub
parent 221c50b85c
commit a9100be92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,9 @@ VGMSTREAM * init_vgmstream_tgc(STREAMFILE *streamFile) {
vgmstream->meta_type = meta_TGC;
vgmstream->layout_type = layout_none;
vgmstream->coding_type = coding_TGC;
vgmstream->ch[0].adpcm_history1_32 = 0;
vgmstream->ch[0].adpcm_step_index = 0;
if (!vgmstream_open_stream(vgmstream, streamFile, 3))
goto fail;