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:
halleyscometsw 2010-10-21 18:36:14 +00:00
parent 502fa83fba
commit 1f20c6937f

View File

@ -273,10 +273,16 @@ VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
for (i=0;i<channel_count;i++) {
vgmstream->ch[i].streamfile = file;
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;
}
}
}