mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +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);
|
||||
|
||||
if(gotMIH)
|
||||
channel_count=read_32bitLE(0x08,infileMIH);
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,(loopStart!=0));
|
||||
if (!vgmstream) goto fail;
|
||||
|
@ -25,7 +25,7 @@ VGMSTREAM * init_vgmstream_ps2_mic(const char * const filename) {
|
||||
infile = open_streamfile(filename);
|
||||
if (!infile) goto fail;
|
||||
|
||||
/* check EXST Header */
|
||||
/* check Header */
|
||||
if (read_32bitLE(0x00,infile) != 0x800)
|
||||
goto fail;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user