mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 08:20:54 +01:00
fixed some issues with MIB & MIC
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@147 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
f5dccfc3d7
commit
99ac7a1610
@ -103,6 +103,9 @@ VGMSTREAM * init_vgmstream_ps2_mib(const char * const filename) {
|
|||||||
|
|
||||||
} while (infile->offset<fileLength);
|
} while (infile->offset<fileLength);
|
||||||
|
|
||||||
|
if(gotMIH)
|
||||||
|
channel_count=read_32bitLE(0x08,infileMIH);
|
||||||
|
|
||||||
/* build the VGMSTREAM */
|
/* build the VGMSTREAM */
|
||||||
vgmstream = allocate_vgmstream(channel_count,(loopStart!=0));
|
vgmstream = allocate_vgmstream(channel_count,(loopStart!=0));
|
||||||
if (!vgmstream) goto fail;
|
if (!vgmstream) goto fail;
|
||||||
|
@ -25,7 +25,7 @@ VGMSTREAM * init_vgmstream_ps2_mic(const char * const filename) {
|
|||||||
infile = open_streamfile(filename);
|
infile = open_streamfile(filename);
|
||||||
if (!infile) goto fail;
|
if (!infile) goto fail;
|
||||||
|
|
||||||
/* check EXST Header */
|
/* check Header */
|
||||||
if (read_32bitLE(0x00,infile) != 0x800)
|
if (read_32bitLE(0x00,infile) != 0x800)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user