Favorite/unfavorite sounds

This commit is contained in:
2023-08-16 16:47:33 +01:00
parent 92d8d077df
commit e875038851
9 changed files with 238 additions and 1 deletions

8
scripts/dump-query.sh Executable file
View File

@ -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