mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-25 22:38:11 +01:00
doc
This commit is contained in:
parent
c1e0143881
commit
ce7ae456ce
@ -1,4 +1,4 @@
|
|||||||
# CMake Build Instructions
|
# CMake build help
|
||||||
|
|
||||||
## Build requirements
|
## Build requirements
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# TXTP FORMAT
|
# TXTP format
|
||||||
|
|
||||||
TXTP is a text file with commands, to improve support for games using audio in certain uncommon or undesirable ways. It's in the form of a mini-playlist or a wrapper with play settings, meant to do post-processing over playable files.
|
TXTP is a text file with commands, to improve support for games using audio in certain uncommon or undesirable ways. It's in the form of a mini-playlist or a wrapper with play settings, meant to do post-processing over playable files.
|
||||||
|
|
||||||
|
18
doc/USAGE.md
18
doc/USAGE.md
@ -148,12 +148,16 @@ handling.
|
|||||||
|
|
||||||
### Subsongs
|
### Subsongs
|
||||||
Certain container formats have multiple audio files, usually called "subsongs", often
|
Certain container formats have multiple audio files, usually called "subsongs", often
|
||||||
not meant to be extracted (no simple separation).
|
not meant to be extracted (no simple separation from container).
|
||||||
|
|
||||||
With CLI tools, you can select a subsong using the `-s` flag followed by a number, for example:
|
By default vgmstream plays first subsong and reports total subsongs, if the format
|
||||||
`text.exe -s 5 file.bank`.
|
is able to contain them. Easiest to use would be the *foobar/winamp/Audacious*
|
||||||
|
plugins, that are able to "unpack" those subsongs automatically into the playlist.
|
||||||
|
|
||||||
For files containing multiple subsongs, you can write them all using some flags.
|
With CLI tools, you can select a subsong using the `-s` flag followed by a number,
|
||||||
|
for example: `text.exe -s 5 file.bank` or `vgmstream123 -s 5 file.bank`.
|
||||||
|
|
||||||
|
Using *vgmstream-cli* you can convert multiple subsongs at once using the `-S` flag.
|
||||||
**WARNING, MAY TAKE A LOT OF SPACE!** Some files have been observed to contain +20000
|
**WARNING, MAY TAKE A LOT OF SPACE!** Some files have been observed to contain +20000
|
||||||
subsongs, so don't use this lightly. Remember to set an output name (`-o`) with subsong
|
subsongs, so don't use this lightly. Remember to set an output name (`-o`) with subsong
|
||||||
wildcards (or leave it alone for the defaults).
|
wildcards (or leave it alone for the defaults).
|
||||||
@ -163,9 +167,9 @@ wildcards (or leave it alone for the defaults).
|
|||||||
- `test.exe -s 1 -S 5 -o bgm.wav file.bank`: writes 5 subsongs, but all overwrite the same file = wrong.
|
- `test.exe -s 1 -S 5 -o bgm.wav file.bank`: writes 5 subsongs, but all overwrite the same file = wrong.
|
||||||
- `test.exe -s 1 -S 5 -o bgm_?02s.wav file.bank`: writes 5 subsongs, each named differently = correct.
|
- `test.exe -s 1 -S 5 -o bgm_?02s.wav file.bank`: writes 5 subsongs, each named differently = correct.
|
||||||
|
|
||||||
Some plugins are able to "unpack" those files automatically into the playlist. For others without
|
For other players without support, or to play only a few choice subsongs, you
|
||||||
support, you can create multiple .txtp (explained below) to select one of the subsongs (like
|
can create multiple `.txtp` (explained later) to select one, like `bgm.sxd#10.txtp`
|
||||||
`bgm.sxd#10.txtp`).
|
(plays subsong 10 in `bgm.sxd`).
|
||||||
|
|
||||||
You can use this python script to autogenerate one `.txtp` per subsong:
|
You can use this python script to autogenerate one `.txtp` per subsong:
|
||||||
https://github.com/vgmstream/vgmstream/tree/master/cli/tools/txtp_maker.py
|
https://github.com/vgmstream/vgmstream/tree/master/cli/tools/txtp_maker.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user