From 5e00ff9214bc6f221014162e9dfaa3bf14c906d1 Mon Sep 17 00:00:00 2001 From: AnonBaiter Date: Wed, 8 Aug 2018 15:52:43 -0300 Subject: [PATCH 1/2] Update ps2_ads.c --- src/meta/ps2_ads.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meta/ps2_ads.c b/src/meta/ps2_ads.c index b9e6399d..cccac2bb 100644 --- a/src/meta/ps2_ads.c +++ b/src/meta/ps2_ads.c @@ -17,8 +17,9 @@ VGMSTREAM * init_vgmstream_ps2_ads(STREAMFILE *streamFile) { /* .ads: actual extension * .ss2: demuxed videos (fake?) * .pcm: Taisho Mononoke Ibunroku (PS2) - * .adx: Armored Core 3 (PS2) */ - if (!check_extensions(streamFile, "ads,ss2,pcm,adx")) + * .adx: Armored Core 3 (PS2) + * [no actual extension]: MotoGP (PS2) */ + if (!check_extensions(streamFile, "ads,ss2,pcm,adx,")) goto fail; if (read_32bitBE(0x00,streamFile) != 0x53536864 && /* "SShd" */ From 4469f0b8614779ad9c19681f44409dbbf22ce5ce Mon Sep 17 00:00:00 2001 From: AnonBaiter Date: Fri, 10 Aug 2018 15:09:37 -0300 Subject: [PATCH 2/2] revert my VPK "fix" turns out that VPK files that contain more than a mere 2 channels really have a divided interleave number by 2 this was necessary so said VPK files wouldn't play improperly anymore --- src/meta/ps2_vpk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/ps2_vpk.c b/src/meta/ps2_vpk.c index 8709809d..dd11030d 100644 --- a/src/meta/ps2_vpk.c +++ b/src/meta/ps2_vpk.c @@ -42,7 +42,7 @@ VGMSTREAM * init_vgmstream_ps2_vpk(STREAMFILE *streamFile) { vgmstream->loop_end_sample = vgmstream->num_samples; } - vgmstream->interleave_block_size = read_32bitLE(0x0C,streamFile)/vgmstream->channels; + vgmstream->interleave_block_size = read_32bitLE(0x0C,streamFile)/2; vgmstream->layout_type = layout_interleave; vgmstream->meta_type = meta_PS2_VPK;