mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-21 12:51:57 +01:00
Formatting fixes
This commit is contained in:
parent
9c9da8fa1b
commit
6487d310cb
@ -143,8 +143,8 @@ VGMSTREAM * init_vgmstream_ea_abk_eaac(STREAMFILE *streamFile) {
|
|||||||
uint8_t num_entries, extra_entries;
|
uint8_t num_entries, extra_entries;
|
||||||
off_t sound_table_offsets[0x2000];
|
off_t sound_table_offsets[0x2000];
|
||||||
VGMSTREAM *vgmstream;
|
VGMSTREAM *vgmstream;
|
||||||
int32_t (*read_32bit)(off_t,STREAMFILE*);
|
int32_t(*read_32bit)(off_t, STREAMFILE*);
|
||||||
int16_t (*read_16bit)(off_t,STREAMFILE*);
|
int16_t(*read_16bit)(off_t, STREAMFILE*);
|
||||||
|
|
||||||
/* check extension */
|
/* check extension */
|
||||||
if (!check_extensions(streamFile, "abk"))
|
if (!check_extensions(streamFile, "abk"))
|
||||||
@ -154,7 +154,7 @@ VGMSTREAM * init_vgmstream_ea_abk_eaac(STREAMFILE *streamFile) {
|
|||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* use table offset to check endianness */
|
/* use table offset to check endianness */
|
||||||
if (guess_endianness32bit(0x1C,streamFile)) {
|
if (guess_endianness32bit(0x1C, streamFile)) {
|
||||||
read_32bit = read_32bitBE;
|
read_32bit = read_32bitBE;
|
||||||
read_16bit = read_16bitBE;
|
read_16bit = read_16bitBE;
|
||||||
} else {
|
} else {
|
||||||
@ -183,15 +183,13 @@ VGMSTREAM * init_vgmstream_ea_abk_eaac(STREAMFILE *streamFile) {
|
|||||||
base_offset_off = 0x2C;
|
base_offset_off = 0x2C;
|
||||||
entries_off = 0x3C;
|
entries_off = 0x3C;
|
||||||
sound_table_offset_off = 0x04;
|
sound_table_offset_off = 0x04;
|
||||||
}
|
} else if (header_table_offset == 0x78) {
|
||||||
else if (header_table_offset == 0x78) {
|
|
||||||
/* FIFA 08 has a bunch of extra zeroes all over the place, don't know what's up with that */
|
/* FIFA 08 has a bunch of extra zeroes all over the place, don't know what's up with that */
|
||||||
num_entries_off = 0x40;
|
num_entries_off = 0x40;
|
||||||
base_offset_off = 0x54;
|
base_offset_off = 0x54;
|
||||||
entries_off = 0x68;
|
entries_off = 0x68;
|
||||||
sound_table_offset_off = 0x0C;
|
sound_table_offset_off = 0x0C;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,10 +205,8 @@ VGMSTREAM * init_vgmstream_ea_abk_eaac(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
/* For some reason, there are duplicate entries pointing at the same sound tables */
|
/* For some reason, there are duplicate entries pointing at the same sound tables */
|
||||||
is_dupe = 0;
|
is_dupe = 0;
|
||||||
for (k = 0; k < total_sound_tables; k++)
|
for (k = 0; k < total_sound_tables; k++) {
|
||||||
{
|
if (table_offset == sound_table_offsets[k]) {
|
||||||
if (table_offset==sound_table_offsets[k])
|
|
||||||
{
|
|
||||||
is_dupe = 1;
|
is_dupe = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -248,7 +244,7 @@ VGMSTREAM * init_vgmstream_ea_abk_eaac(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
if (bnk_target_index == 0xFFFF || ast_offset == 0)
|
if (bnk_target_index == 0xFFFF || ast_offset == 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
vgmstream = parse_s10a_header(streamFile, bnk_offset, bnk_target_index, ast_offset);
|
vgmstream = parse_s10a_header(streamFile, bnk_offset, bnk_target_index, ast_offset);
|
||||||
if (!vgmstream)
|
if (!vgmstream)
|
||||||
goto fail;
|
goto fail;
|
||||||
@ -288,8 +284,7 @@ static VGMSTREAM * parse_s10a_header(STREAMFILE *streamFile, off_t offset, uint1
|
|||||||
vgmstream = init_vgmstream_eaaudiocore_header(streamFile, streamFile, snr_offset, sns_offset, meta_EA_SNR_SNS);
|
vgmstream = init_vgmstream_eaaudiocore_header(streamFile, streamFile, snr_offset, sns_offset, meta_EA_SNR_SNS);
|
||||||
if (!vgmstream)
|
if (!vgmstream)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
/* streamed asset */
|
/* streamed asset */
|
||||||
astFile = open_streamfile_by_ext(streamFile, "ast");
|
astFile = open_streamfile_by_ext(streamFile, "ast");
|
||||||
if (!astFile)
|
if (!astFile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user