Files
tldr/pages.zh/common/vgmstream_cli.md

28 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vgmstream_cli
> 播放多种视频游戏中使用的音频格式,并将其转换为 `wav` 格式。
> 更多信息:<https://github.com/vgmstream/vgmstream/blob/master/doc/USAGE.md>。
-`adc` 文件解码为 `wav`。(默认输出名称为 `input.wav`
`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}}`
- 打印元数据而不解码音频:
`vgmstream_cli {{path/to/input.adc}} -m`
- 解码没有循环的音频文件:
`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}} -i`
- 解码带有三个循环,然后添加 3 秒延迟,最后进行 5 秒淡出:
`vgmstream_cli {{path/to/input.adc}} -o {{path/to/output.wav}} -l {{3.0}} -f {{5.0}} -d {{3.0}}`
- 将多个文件转换为 `bgm_(原始名称).wav`(默认 `-o` 模式为 `?f.wav`
`vgmstream_cli -o {{path/to/bgm_?f.wav}} {{path/to/file1.adc}} {{path/to/file2.adc}}`
- 播放文件并无限循环(`channels``rate` 必须与元数据匹配):
`vgmstream_cli {{path/to/input.adc}} -pec | aplay --format cd --channels {{1}} --rate {{44100}}`