mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +01:00
Fix some LOPU .lopus loops
This commit is contained in:
parent
c87816ac59
commit
d2acaf3994
@ -30,7 +30,13 @@ VGMSTREAM* init_vgmstream_lopu_fb(STREAMFILE* sf) {
|
||||
/* rest: null */
|
||||
|
||||
loop_flag = (loop_end > 0); /* -1 if no loop */
|
||||
|
||||
/* Must remove skip or some files decode past limit. loop_end equals to PC (.ogg) version's max
|
||||
* samples, but in some case (stage_park) goes slightly past max but is still valid.
|
||||
* (loops shouldn't remove skip as they wouldn't match PC/bgm.txt loop times) */
|
||||
num_samples -= skip;
|
||||
if (num_samples < loop_end)
|
||||
num_samples = loop_end;
|
||||
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
|
Loading…
Reference in New Issue
Block a user