redspark loop fix?

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@606 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2009-03-16 16:16:33 +00:00
parent 9fb52e42f4
commit 6a8c9e5b60

View File

@ -69,6 +69,9 @@ VGMSTREAM * init_vgmstream_RedSpark(STREAMFILE *streamFile) {
start += channel_count*8;
vgmstream->loop_start_sample = get_32bitBE(&buf[start+4])*14;
vgmstream->loop_end_sample = (get_32bitBE(&buf[start+0xc])+1)*14;
if (vgmstream->loop_end_sample > vgmstream->num_samples) {
vgmstream->loop_end_sample = vgmstream->num_samples;
}
}
if (channel_count >= 2) {