sotn-decomp/tools/vab-ex/test.sh
sozud 595ba748f0
Sound effect extraction WIP (#398)
It seems like there's some interest in figuring out more about the sound
effects lately so I tried making a tool to extract them. They're in a
standard Sony VAB format, split into the header (.VH) and a bundle of
VAG files (.VB). VAG files are ADPCM encoded. Eventually the idea is
being able to round-trip these files but this just extracts to WAV at
the moment. I may be wrong but some of the sound effects appear to be
unused.

Usage:
`sh test.sh`
Look at output in `./out`

The playback speed is hardcoded since I haven't figured out yet if the
pitch is part of these files or somewhere else. It can be changed by
altering `samp_freq`.

---------

Co-authored-by: sozud <sozud@users.noreply.github.com>
2023-07-31 12:12:07 -07:00

13 lines
897 B
Bash

rm -rf ./out
cargo run --release ../../disks/us/ST/CEN/SD_ZKCEN.VH ../../disks/us/ST/CEN/SD_ZKCEN.VB ./out/cen
cargo run --release ../../disks/us/ST/DRE/SD_ZKDRE.VH ../../disks/us/ST/DRE/SD_ZKDRE.VB ./out/dre
cargo run --release ../../disks/us/ST/MAD/SD_ZKMAD.VH ../../disks/us/ST/MAD/SD_ZKMAD.VB ./out/mad
cargo run --release ../../disks/us/ST/NO3/SD_ZKNO3.VH ../../disks/us/ST/NO3/SD_ZKNO3.VB ./out/no3
cargo run --release ../../disks/us/ST/NP3/SD_ZKNP3.VH ../../disks/us/ST/NP3/SD_ZKNP3.VB ./out/np3
cargo run --release ../../disks/us/ST/NZ0/SD_ZKNZ0.VH ../../disks/us/ST/NZ0/SD_ZKNZ0.VB ./out/nz0
cargo run --release ../../disks/us/ST/SEL/SD_ZKSEL.VH ../../disks/us/ST/SEL/SD_ZKSEL.VB ./out/sel
cargo run --release ../../disks/us/ST/ST0/SD_ZKST0.VH ../../disks/us/ST/ST0/SD_ZKST0.VB ./out/st0
cargo run --release ../../disks/us/ST/WRP/SD_ZKWRP.VH ../../disks/us/ST/WRP/SD_ZKWRP.VB ./out/wrp