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;
|
||||
|
||||
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+0x10+(vgmstream->current_block_size*i);
|
||||
|
||||
for (i=0;i<vgmstream->channels;i++)
|
||||
{
|
||||
vgmstream->ch[i].offset = vgmstream->current_block_offset + (0x2000 * i) + 0x10;
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user