mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-06 14:44:25 +01:00
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:
parent
649e987aca
commit
c7618cc4ac
@ -6,11 +6,12 @@ void ps2_iab_block_update(off_t block_offset, VGMSTREAM * vgmstream) {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
vgmstream->current_block_offset = block_offset;
|
vgmstream->current_block_offset = block_offset;
|
||||||
vgmstream->current_block_size = 0x4010;
|
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;
|
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++)
|
for (i=0;i<vgmstream->channels;i++) {
|
||||||
{
|
vgmstream->ch[i].offset = vgmstream->current_block_offset+0x10+(vgmstream->current_block_size*i);
|
||||||
vgmstream->ch[i].offset = vgmstream->current_block_offset + (0x2000 * i) + 0x10;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<Configurations>
|
<Configurations>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="H:\Program Files\Winamp\Plugins"
|
OutputDirectory="C:\Program Files\Winamp\Plugins"
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
ConfigurationType="4"
|
ConfigurationType="4"
|
||||||
>
|
>
|
||||||
|
@ -15,12 +15,12 @@ VGMSTREAM * init_vgmstream_ps2_iab(STREAMFILE *streamFile) {
|
|||||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||||
if (strcasecmp("iab",filename_extension(filename))) goto fail;
|
if (strcasecmp("iab",filename_extension(filename))) goto fail;
|
||||||
|
|
||||||
/* check header */
|
/* check header */
|
||||||
if (read_32bitBE(0x00,streamFile) != 0x10000000)
|
if (read_32bitBE(0x00,streamFile) != 0x10000000)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* check file size */
|
/* check file size */
|
||||||
if (read_32bitLE(0x1C,streamFile) != get_streamfile_size(streamFile))
|
if (read_32bitLE(0x1C,streamFile) != get_streamfile_size(streamFile))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
loop_flag = 0;
|
loop_flag = 0;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="9.00"
|
Version="9,00"
|
||||||
Name="in_vgmstream"
|
Name="in_vgmstream"
|
||||||
ProjectGUID="{42D86561-8CE4-40F5-86CE-58C986B77502}"
|
ProjectGUID="{42D86561-8CE4-40F5-86CE-58C986B77502}"
|
||||||
RootNamespace="in_vgmstream"
|
RootNamespace="in_vgmstream"
|
||||||
@ -18,8 +18,8 @@
|
|||||||
<Configurations>
|
<Configurations>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="H:\Program Files\Winamp\Plugins"
|
OutputDirectory="C:\Program Files\Winamp\Plugins"
|
||||||
IntermediateDirectory="H:\Program Files\Winamp\Plugins"
|
IntermediateDirectory="C:\Program Files\Winamp\Plugins"
|
||||||
ConfigurationType="2"
|
ConfigurationType="2"
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user