mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 00:20:47 +01:00
Add TXTH "half_size" interleave + SDF/BD3 exts
This commit is contained in:
parent
b5da881a44
commit
59cef16a2c
@ -59,6 +59,7 @@ VGMSTREAM_DECLARE_FILE_TYPE("BAKA", baka);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BAR", bar);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BCSTM", bcstm);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BCWAV", bcwav);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BD3", bd3);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BDSP", bdsp);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BFSTM", bfstm);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("BFWAV", bfwav);
|
||||
@ -264,6 +265,7 @@ VGMSTREAM_DECLARE_FILE_TYPE("SC", sc);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SCD", scd);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SCK", sck);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SD9", sd9);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SDF", sdf);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SDT", sdt);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SEG", seg);
|
||||
VGMSTREAM_DECLARE_FILE_TYPE("SF0", sf0);
|
||||
|
@ -52,6 +52,7 @@ static const char* extension_list[] = {
|
||||
"bar",
|
||||
"bcstm",
|
||||
"bcwav",
|
||||
"bd3", //txth/reserved [Elevator Action Deluxe (PS3)]
|
||||
"bdsp",
|
||||
"bfstm",
|
||||
"bfwav",
|
||||
@ -259,6 +260,7 @@ static const char* extension_list[] = {
|
||||
"scd",
|
||||
"sck",
|
||||
"sd9",
|
||||
"sdf",
|
||||
"sdt",
|
||||
"seg",
|
||||
"sf0",
|
||||
|
@ -472,7 +472,13 @@ static int parse_keyval(STREAMFILE * streamFile, STREAMFILE * streamText, txth_h
|
||||
if (!parse_num(streamFile,val, &txth->codec_mode)) goto fail;
|
||||
}
|
||||
else if (0==strcmp(key,"interleave")) {
|
||||
if (!parse_num(streamFile,val, &txth->interleave)) goto fail;
|
||||
if (0==strcmp(val,"half_size")) {
|
||||
txth->interleave = txth->data_size / txth->channels;
|
||||
VGM_LOG("int=%x, ds=%x\n", txth->interleave, txth->data_size);
|
||||
}
|
||||
else {
|
||||
if (!parse_num(streamFile,val, &txth->interleave)) goto fail;
|
||||
}
|
||||
}
|
||||
else if (0==strcmp(key,"id_value")) {
|
||||
if (!parse_num(streamFile,val, &txth->id_value)) goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user