Calculate GIN size

This commit is contained in:
NicknineTheEagle 2019-02-18 13:02:58 +03:00
parent 12c82b9ca9
commit c93ffb7231

View File

@ -56,6 +56,9 @@ VGMSTREAM * init_vgmstream_gin_header(STREAMFILE *streamFile, off_t offset) {
vgmstream->coding_type = coding_EA_XAS_V0;
vgmstream->layout_type = layout_none;
/* calculate size for TMX */
vgmstream->stream_size = (align_size_to_block(num_samples, 32) / 32) * 0x13;
if (!vgmstream_open_stream(vgmstream, streamFile, start_offset))
goto fail;
return vgmstream;