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:
fastelbja 2008-05-17 15:39:02 +00:00
parent f5dccfc3d7
commit 99ac7a1610
2 changed files with 4 additions and 1 deletions

View File

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

View File

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