mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
Fix broken FSB5 ajurika loops
This commit is contained in:
parent
f4d9ebfe47
commit
1ff6bcebed
@ -168,7 +168,7 @@ VGMSTREAM * init_vgmstream_fsb5(STREAMFILE *streamFile) {
|
|||||||
is_small = 1; //fsb5.num_samples < 20 * fsb5.sample_rate;
|
is_small = 1; //fsb5.num_samples < 20 * fsb5.sample_rate;
|
||||||
|
|
||||||
/* wrong values in some files [Pac-Man CE2 Plus (Switch) pce2p_bgm_ajurika_*.fsb] */
|
/* wrong values in some files [Pac-Man CE2 Plus (Switch) pce2p_bgm_ajurika_*.fsb] */
|
||||||
ajurika_loops = fsb5.loop_start == 0x3c && fsb5.loop_end == 0x007F007F &&
|
ajurika_loops = fsb5.loop_start == 0x3c && fsb5.loop_end == (0x007F007F + 1) &&
|
||||||
fsb5.num_samples > fsb5.loop_end + 10000; /* arbitrary test in case some game does have those */
|
fsb5.num_samples > fsb5.loop_end + 10000; /* arbitrary test in case some game does have those */
|
||||||
|
|
||||||
fsb5.loop_flag = 1;
|
fsb5.loop_flag = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user