mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Calculate GIN size
This commit is contained in:
parent
12c82b9ca9
commit
c93ffb7231
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user