mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 00:04:04 +01:00
fix p3d more > 2 channels
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@777 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
a1797ac9ee
commit
26f58b831e
@ -47,12 +47,12 @@ VGMSTREAM * init_vgmstream_p3d(STREAMFILE *streamFile) {
|
||||
read_16bitBE(parse_offset+12,streamFile) != 0x6500) goto fail;
|
||||
parse_offset += 4 + text_len + 1;
|
||||
}
|
||||
channel_count = read_32bitLE(parse_offset,streamFile);
|
||||
parse_offset += 4;
|
||||
{
|
||||
uint32_t name_count = read_32bitLE(parse_offset,streamFile);
|
||||
int i;
|
||||
/* channel names? */
|
||||
for (i = 0; i < channel_count; i++)
|
||||
parse_offset += 4;
|
||||
/* names? */
|
||||
for (i = 0; i < name_count; i++)
|
||||
{
|
||||
int text_len = read_32bitLE(parse_offset,streamFile);
|
||||
parse_offset += 4 + text_len + 1;
|
||||
@ -72,7 +72,7 @@ VGMSTREAM * init_vgmstream_p3d(STREAMFILE *streamFile) {
|
||||
|
||||
/* real RADP header */
|
||||
if (0x52414450 != read_32bitBE(parse_offset,streamFile)) goto fail;
|
||||
if (read_32bitLE(parse_offset+4,streamFile) != channel_count) goto fail;
|
||||
channel_count = read_32bitLE(parse_offset+4,streamFile);
|
||||
sample_rate = read_32bitLE(parse_offset+8,streamFile);
|
||||
/* codec id? */
|
||||
//if (9 != read_32bitLE(parse_offset+0xC,streamFile)) goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user