mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +01:00
Cleanup/doc
This commit is contained in:
parent
57197d601d
commit
6d43e90332
@ -679,6 +679,8 @@ static int convert_file(cli_config* cfg) {
|
|||||||
int32_t len_samples;
|
int32_t len_samples;
|
||||||
|
|
||||||
|
|
||||||
|
vgmstream_set_log_stdout(VGM_LOG_LEVEL_ALL);
|
||||||
|
|
||||||
/* for plugin testing */
|
/* for plugin testing */
|
||||||
if (cfg->validate_extensions) {
|
if (cfg->validate_extensions) {
|
||||||
int valid;
|
int valid;
|
||||||
@ -693,8 +695,6 @@ static int convert_file(cli_config* cfg) {
|
|||||||
if (!valid) goto fail;
|
if (!valid) goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
vgmstream_set_log_stdout(VGM_LOG_LEVEL_ALL);
|
|
||||||
|
|
||||||
/* open streamfile and pass subsong */
|
/* open streamfile and pass subsong */
|
||||||
{
|
{
|
||||||
STREAMFILE* sf = open_stdio_streamfile(cfg->infilename);
|
STREAMFILE* sf = open_stdio_streamfile(cfg->infilename);
|
||||||
|
@ -6,12 +6,15 @@
|
|||||||
* They are Wwise Vorbis codebook binaries converted to c-arrays.
|
* They are Wwise Vorbis codebook binaries converted to c-arrays.
|
||||||
* Extracted from Wwise SDK by ww2ogg. The originals have all codebooks together with an index table at the end.
|
* Extracted from Wwise SDK by ww2ogg. The originals have all codebooks together with an index table at the end.
|
||||||
* Here each codebook is an array instead, and the index is converted to a list.
|
* Here each codebook is an array instead, and the index is converted to a list.
|
||||||
|
*
|
||||||
|
* aoTuV_603 codebooks were introduced in later versions, very similar with reordered standard ones and
|
||||||
|
* a few new ones (reused here to save some kbs).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t id; /*1: standard, 2: aoTuV_603 */
|
uint32_t id; /* 1: standard, 2: aoTuV_603 */
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
const uint8_t *codebook;
|
const uint8_t* codebook;
|
||||||
} wvc_info;
|
} wvc_info;
|
||||||
|
|
||||||
/* ******************************************** */
|
/* ******************************************** */
|
||||||
@ -5182,4 +5185,4 @@ static const wvc_info wvc_list_aotuv603[] = {
|
|||||||
{0x0255,0x0036,wvc_standard_00cb},
|
{0x0255,0x0036,wvc_standard_00cb},
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif/*_WWISE_VORBIS_DATA_H_ */
|
#endif /* _WWISE_VORBIS_DATA_H_ */
|
||||||
|
@ -101,7 +101,7 @@ static const adxkey_info adxkey8_list[] = {
|
|||||||
{0x5f5d,0x552b,0x5507, "DATAM-KK2",0},
|
{0x5f5d,0x552b,0x5507, "DATAM-KK2",0},
|
||||||
|
|
||||||
/* Sakura Taisen: Atsuki Chishio ni (PS2) [Sega] */
|
/* Sakura Taisen: Atsuki Chishio ni (PS2) [Sega] */
|
||||||
{0x645d,0x6011,0x5c29, NULL,0}, // keystring may be printf'd "%08X" + number (unlikely key: "[Seq][ADX] illegal cri or libsd status.")
|
{0x645d,0x6011,0x5c29, "[Seq][ADX] illegal cri or libsd status.",0}, // actual keystring (obfuscation probably)
|
||||||
|
|
||||||
/* Sakura Taisen Monogatari: Mysterious Paris (PS2) [Sega] */
|
/* Sakura Taisen Monogatari: Mysterious Paris (PS2) [Sega] */
|
||||||
{0x62ad,0x4b13,0x5957, "inoue4126",0},
|
{0x62ad,0x4b13,0x5957, "inoue4126",0},
|
||||||
|
@ -83,7 +83,6 @@ VGMSTREAM* init_vgmstream_aifc(STREAMFILE* sf) {
|
|||||||
/* checks */
|
/* checks */
|
||||||
if (!is_id32be(0x00,sf, "FORM"))
|
if (!is_id32be(0x00,sf, "FORM"))
|
||||||
goto fail;
|
goto fail;
|
||||||
VGM_LOG("1\n");
|
|
||||||
|
|
||||||
/* .aif: common (AIFF or AIFC), .aiff: common AIFF, .aifc: common AIFC
|
/* .aif: common (AIFF or AIFC), .aiff: common AIFF, .aifc: common AIFC
|
||||||
* .laif/laiff/laifc: for plugins
|
* .laif/laiff/laifc: for plugins
|
||||||
|
@ -89,16 +89,18 @@ VGMSTREAM* init_vgmstream_xwb(STREAMFILE* sf) {
|
|||||||
|
|
||||||
|
|
||||||
/* checks */
|
/* checks */
|
||||||
/* .xwb: standard
|
if (!is_id32be(0x00,sf, "WBND") &&
|
||||||
* .xna: Touhou Makukasai ~ Fantasy Danmaku Festival (PC)
|
!is_id32le(0x00,sf, "WBND")) /* X360 */
|
||||||
* (extensionless): Ikaruga (X360/PC), Grabbed by the Ghoulies (Xbox) */
|
|
||||||
if (!check_extensions(sf,"xwb,xna,"))
|
|
||||||
goto fail;
|
|
||||||
if ((read_u32be(0x00,sf) != 0x57424E44) && /* "WBND" (LE) */
|
|
||||||
(read_u32be(0x00,sf) != 0x444E4257)) /* "DNBW" (BE) */
|
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
xwb.little_endian = read_u32be(0x00,sf) == 0x57424E44; /* WBND */
|
/* .xwb: standard
|
||||||
|
* .xna: Touhou Makukasai ~ Fantasy Danmaku Festival (PC)
|
||||||
|
* (extensionless): Ikaruga (X360/PC), Grabbed by the Ghoulies (Xbox)
|
||||||
|
* .bd: Fatal Frame 2 (Xbox) */
|
||||||
|
if (!check_extensions(sf,"xwb,xna,bd"))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
|
xwb.little_endian = is_id32be(0x00,sf, "WBND"); /* Xbox/PC */
|
||||||
if (xwb.little_endian) {
|
if (xwb.little_endian) {
|
||||||
read_u32 = read_u32le;
|
read_u32 = read_u32le;
|
||||||
read_s32 = read_s32le;
|
read_s32 = read_s32le;
|
||||||
|
Loading…
Reference in New Issue
Block a user