small fix to iab block layout

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@892 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoat 2010-12-07 16:24:19 +00:00
parent 649e987aca
commit c7618cc4ac
4 changed files with 16 additions and 15 deletions

View File

@ -6,11 +6,12 @@ void ps2_iab_block_update(off_t block_offset, VGMSTREAM * vgmstream) {
int i;
vgmstream->current_block_offset = block_offset;
vgmstream->current_block_size = 0x4010;
vgmstream->next_block_offset = vgmstream->current_block_offset + vgmstream->current_block_size;
vgmstream->current_block_size = read_32bitLE(vgmstream->current_block_offset+0x08,vgmstream->ch[0].streamfile);
vgmstream->next_block_offset = vgmstream->current_block_offset+vgmstream->current_block_size+0x10;
vgmstream->current_block_size/=vgmstream->channels;
for (i=0;i<vgmstream->channels;i++)
{
vgmstream->ch[i].offset = vgmstream->current_block_offset + (0x2000 * i) + 0x10;
for (i=0;i<vgmstream->channels;i++) {
vgmstream->ch[i].offset = vgmstream->current_block_offset+0x10+(vgmstream->current_block_size*i);
}
}

View File

@ -18,7 +18,7 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="H:\Program Files\Winamp\Plugins"
OutputDirectory="C:\Program Files\Winamp\Plugins"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
>

View File

@ -15,12 +15,12 @@ VGMSTREAM * init_vgmstream_ps2_iab(STREAMFILE *streamFile) {
streamFile->get_name(streamFile,filename,sizeof(filename));
if (strcasecmp("iab",filename_extension(filename))) goto fail;
/* check header */
if (read_32bitBE(0x00,streamFile) != 0x10000000)
goto fail;
/* check file size */
if (read_32bitLE(0x1C,streamFile) != get_streamfile_size(streamFile))
/* check header */
if (read_32bitBE(0x00,streamFile) != 0x10000000)
goto fail;
/* check file size */
if (read_32bitLE(0x1C,streamFile) != get_streamfile_size(streamFile))
goto fail;
loop_flag = 0;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Version="9,00"
Name="in_vgmstream"
ProjectGUID="{42D86561-8CE4-40F5-86CE-58C986B77502}"
RootNamespace="in_vgmstream"
@ -18,8 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="H:\Program Files\Winamp\Plugins"
IntermediateDirectory="H:\Program Files\Winamp\Plugins"
OutputDirectory="C:\Program Files\Winamp\Plugins"
IntermediateDirectory="C:\Program Files\Winamp\Plugins"
ConfigurationType="2"
>
<Tool