The first commit

This commit is contained in:
Banjo Kazooie
2022-07-15 17:09:41 -05:00
commit dd13d34074
1087 changed files with 391897 additions and 0 deletions

6
tools/sound_func_val_unwrap Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
SFX_ID=$(( $1 & 0x7ff))
VOLUME=$(echo "$((($1 >> 21) & 0x7ff)).0 / 1023.0" | bc -l)
SAMPLE_RATE=$(((($1 >> 11) & 0x3ff)<<5))
printf "SFX_%X, %f, %d\n" $SFX_ID $VOLUME $SAMPLE_RATE