mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-17 11:57:08 +01:00
redspark loop fix?
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@606 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
9fb52e42f4
commit
6a8c9e5b60
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user