This commit is contained in:
bnnm 2021-10-01 00:04:32 +02:00
parent 34b25d2e1f
commit 3f164f74c9
6 changed files with 17 additions and 5 deletions

View File

@ -10,7 +10,7 @@ Some of vgmstream's features:
- subsongs, playing a format's multiple internal songs separately
- many types of companion files (data split in multiple files) and custom containers
- encryption keys, internal stream names, and many other unusual cases found in game audio
- TXTH function, to support extra formats (including raw audio in many forms)
- TXTH function, to add external support for extra formats (including raw audio in many forms)
- TXTP function, for real-time and per-file config (like forced looping, removing
channels, playing certain subsong, or fusing together multiple files as a single one)
- simple external tagging via .m3u files

View File

@ -148,7 +148,7 @@ as explained below, but often will use default values. Accepted codec strings:
# * For later Konami rhythm games
# - AAC Advanced Audio Coding (raw without .mp4)
# * For some 3DS games and many iOS games
# * Should set skip_samples (around 1024 but varies)
# * Should set skip_samples (typically 1024 but varies, 2112 is also common)
# - TGC Tiger Game.com 4-bit ADPCM
# * For Tiger Game.com
# - ASF Argonaut ASF ADPCM

View File

@ -169,6 +169,7 @@
<ClInclude Include="coding\tac_decoder_lib_ops.h" />
<ClInclude Include="layout\layout.h" />
<ClInclude Include="util\chunks.h" />
<ClInclude Include="util\endian.h" />
<ClInclude Include="util\log.h" />
<ClInclude Include="util\m2_psb.h" />
</ItemGroup>

View File

@ -305,6 +305,9 @@
<ClInclude Include="util\chunks.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="util\endian.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="util\log.h">
<Filter>Header Files</Filter>
</ClInclude>

View File

@ -2,6 +2,7 @@
#include "../util.h"
#include "../coding/coding.h"
#include "../util/chunks.h"
#include "../util/endian.h"
/* Wwise uses a custom RIFF/RIFX header, non-standard enough that it's parsed it here.
@ -56,9 +57,6 @@ typedef struct {
static int parse_wwise(STREAMFILE* sf, wwise_header* ww);
static int is_dsp_full_interleave(STREAMFILE* sf, wwise_header* ww, off_t coef_offset);
typedef uint32_t (*read_u32_t)(off_t, STREAMFILE*);
typedef int32_t (*read_s32_t)(off_t, STREAMFILE*);
typedef uint16_t (*read_u16_t)(off_t, STREAMFILE*);
/* Wwise - Audiokinetic Wwise (WaveWorks Interactive Sound Engine) middleware */

10
src/util/endian.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef _UTIL_ENDIAN_H
#define _UTIL_ENDIAN_H
#include "../streamfile.h"
typedef uint32_t (*read_u32_t)(off_t, STREAMFILE*);
typedef int32_t (*read_s32_t)(off_t, STREAMFILE*);
typedef uint16_t (*read_u16_t)(off_t, STREAMFILE*);
#endif