I have reason to believe that the looping should be more like this, though it does throw certain tracks (03.SVS) off.

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@296 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-07-07 15:20:29 +00:00
parent 56d196a648
commit 05e56c1f78

View File

@ -33,8 +33,8 @@ VGMSTREAM * init_vgmstream_svs(STREAMFILE *streamFile) {
vgmstream->coding_type = coding_PSX;
vgmstream->num_samples = (get_streamfile_size(streamFile)-0x40)*28/16/channel_count;
if (loop_flag) {
vgmstream->loop_start_sample = (read_32bitLE(0x08,streamFile)-2)*28;
vgmstream->loop_end_sample = (read_32bitLE(0x0c,streamFile)-2)*28;
vgmstream->loop_start_sample = (read_32bitLE(0x08,streamFile)-1)*28;
vgmstream->loop_end_sample = (read_32bitLE(0x0c,streamFile)-1)*28;
}
vgmstream->layout_type = layout_interleave;