Merge pull request #280 from AnonBaiter/patch-3

vgmstream fix number 4
This commit is contained in:
Christopher Snowhill 2018-08-10 13:40:45 -07:00 committed by GitHub
commit 999743b4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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" */

View File

@ -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;