Add script to dump sounds to files.
This commit is contained in:
1 parent
1a1b1b8144
commit
80f45a1f5c
1 file changed
+8
Executable
+8
@@ -0,0 +1,8 @@
|
||||
mysql -D soundfx -N -e "SELECT name, hex(src) FROM sounds" > out
|
||||
split --additional-suffix=.row -l 1 out
|
||||
for filename in *.row; do
|
||||
name=`grep -oP '^(.+)(?=\t)' $filename`
|
||||
col=`awk -F '\t' '{print $2}' "$filename"`
|
||||
echo $col > "$filename.hex"
|
||||
xxd -r -p "$filename.hex" "$name.opus"
|
||||
done
|
||||
Reference in new issue
Block a user