mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
fix IMA offset bug
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@870 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
502fa83fba
commit
1f20c6937f
@ -273,10 +273,16 @@ VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
|
||||
for (i=0;i<channel_count;i++) {
|
||||
vgmstream->ch[i].streamfile = file;
|
||||
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
|
||||
if (vgmstream->coding_type == coding_MS_IMA) {
|
||||
// both IMA channels work with same bytes
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset;
|
||||
} else {
|
||||
vgmstream->ch[i].channel_start_offset=
|
||||
vgmstream->ch[i].offset=start_offset+
|
||||
vgmstream->interleave_block_size*i;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user