mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-29 19:37:30 +01:00
Minor tweaks
This commit is contained in:
parent
1bc7e0e410
commit
7c45ce5cc5
@ -134,6 +134,7 @@ them playable through vgmstream.
|
|||||||
- .aif to .laif or .aiffl or .aifcl (standard Mac AIF, Asobo AIF, Ogg)
|
- .aif to .laif or .aiffl or .aifcl (standard Mac AIF, Asobo AIF, Ogg)
|
||||||
- .aiff/aifc to .aiffl/aifcl (standard Mac AIF)
|
- .aiff/aifc to .aiffl/aifcl (standard Mac AIF)
|
||||||
- .asf to .lasf (EA games, Argonaut ASF)
|
- .asf to .lasf (EA games, Argonaut ASF)
|
||||||
|
- .bin to .lbin (various)
|
||||||
- .flac to .lflac (standard FLAC)
|
- .flac to .lflac (standard FLAC)
|
||||||
- .mp2 to .lmp2 (standard MP2)
|
- .mp2 to .lmp2 (standard MP2)
|
||||||
- .mp3 to .lmp3 (standard MP3)
|
- .mp3 to .lmp3 (standard MP3)
|
||||||
@ -343,8 +344,8 @@ are used in few games.
|
|||||||
- Argonaut ASF 4-bit ADPCM
|
- Argonaut ASF 4-bit ADPCM
|
||||||
- Ocean DSA 4-bit ADPCM
|
- Ocean DSA 4-bit ADPCM
|
||||||
- Circus XPCM ADPCM
|
- Circus XPCM ADPCM
|
||||||
- OKI 4-bit ADPCM (16-bit output, PC-FX)
|
- OKI 4-bit ADPCM (16-bit output, 4-shift, PC-FX)
|
||||||
- Ocean DSA 4-bit ADPCM
|
- Ubisoft 4/6-bit ADPCM
|
||||||
- SDX2 2:1 Squareroot-Delta-Exact compression DPCM
|
- SDX2 2:1 Squareroot-Delta-Exact compression DPCM
|
||||||
- CBD2 2:1 Cuberoot-Delta-Exact compression DPCM
|
- CBD2 2:1 Cuberoot-Delta-Exact compression DPCM
|
||||||
- Activision EXAKT SASSC DPCM
|
- Activision EXAKT SASSC DPCM
|
||||||
|
@ -59,6 +59,7 @@ Requires MSVC (foobar/SDK only links to MSVC C++ DLLs) and these dependencies:
|
|||||||
- FDK-AAC, in *(vgmstream)/dependencies/fdk-aac/*: https://github.com/kode54/fdk-aac
|
- FDK-AAC, in *(vgmstream)/dependencies/fdk-aac/*: https://github.com/kode54/fdk-aac
|
||||||
- QAAC, in *(vgmstream)/dependencies/qaac/*: https://github.com/kode54/qaac
|
- QAAC, in *(vgmstream)/dependencies/qaac/*: https://github.com/kode54/qaac
|
||||||
- WTL (if needed), in *(vgmstream)/dependencies/WTL/*: http://wtl.sourceforge.net/
|
- WTL (if needed), in *(vgmstream)/dependencies/WTL/*: http://wtl.sourceforge.net/
|
||||||
|
- may need to install ATL and MFC libraries (can be installed in Visual Studio Installer)
|
||||||
|
|
||||||
The following project modifications are required:
|
The following project modifications are required:
|
||||||
- For *foobar2000_ATL_helpers* add *../../../WTL/Include* to the compilers's *additional includes*
|
- For *foobar2000_ATL_helpers* add *../../../WTL/Include* to the compilers's *additional includes*
|
||||||
|
@ -6,26 +6,25 @@
|
|||||||
/* If these variables are packed properly in the struct (one after another)
|
/* If these variables are packed properly in the struct (one after another)
|
||||||
* then this is actually how they are laid out in the file, albeit big-endian */
|
* then this is actually how they are laid out in the file, albeit big-endian */
|
||||||
struct dsp_header {
|
struct dsp_header {
|
||||||
uint32_t sample_count;
|
uint32_t sample_count; /* 0x00 */
|
||||||
uint32_t nibble_count;
|
uint32_t nibble_count; /* 0x04 */
|
||||||
uint32_t sample_rate;
|
uint32_t sample_rate; /* 0x08 */
|
||||||
uint16_t loop_flag;
|
uint16_t loop_flag; /* 0x0c */
|
||||||
uint16_t format;
|
uint16_t format; /* 0x0e */
|
||||||
uint32_t loop_start_offset;
|
uint32_t loop_start_offset; /* 0x10 */
|
||||||
uint32_t loop_end_offset;
|
uint32_t loop_end_offset; /* 0x14 */
|
||||||
uint32_t ca;
|
uint32_t ca; /* 0x18 */
|
||||||
int16_t coef[16]; /* really 8x2 */
|
int16_t coef[16]; /* 0x1c (really 8x2) */
|
||||||
uint16_t gain;
|
uint16_t gain; /* 0x3c */
|
||||||
uint16_t initial_ps;
|
uint16_t initial_ps; /* 0x3e */
|
||||||
int16_t initial_hist1;
|
int16_t initial_hist1; /* 0x40 */
|
||||||
int16_t initial_hist2;
|
int16_t initial_hist2; /* 0x42 */
|
||||||
uint16_t loop_ps;
|
uint16_t loop_ps; /* 0x44 */
|
||||||
int16_t loop_hist1;
|
int16_t loop_hist1; /* 0x46 */
|
||||||
int16_t loop_hist2;
|
int16_t loop_hist2; /* 0x48 */
|
||||||
int16_t channel_count; /* DSPADPCM.exe ~v2.7 extension */
|
int16_t channel_count; /* 0x4a (DSPADPCM.exe ~v2.7 extension) */
|
||||||
int16_t block_size;
|
int16_t block_size; /* 0x4c */
|
||||||
/* padding/reserved up to 0x60 */
|
/* padding/reserved up to 0x60, DSPADPCM.exe from GC adds garbage here (uninitialized MSVC memory?) */
|
||||||
/* DSPADPCM.exe from GC adds some extra data here (uninitialized MSVC memory?) */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* read the above struct; returns nonzero on failure */
|
/* read the above struct; returns nonzero on failure */
|
||||||
|
@ -1685,8 +1685,8 @@ static int parse_offsets(ubi_sb_header * sb, STREAMFILE *streamFile) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
fail:
|
//fail:
|
||||||
return 0;
|
// return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse a single known header resource at offset (see config_sb for info) */
|
/* parse a single known header resource at offset (see config_sb for info) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user