From 05e56c1f7821c6c30f499cb9d05b3343643e04a1 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Mon, 7 Jul 2008 15:20:29 +0000 Subject: [PATCH] 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 --- src/meta/svs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meta/svs.c b/src/meta/svs.c index cf67c302..747f31da 100644 --- a/src/meta/svs.c +++ b/src/meta/svs.c @@ -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;