From 7505b9792063a6272d2b193abbfdd49a97480207 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 10:14:10 +0100 Subject: fix(assets): Update gen_assets.sh paths Synchronizes scripts/gen_assets.sh with the current project structure: uses 'demo_assets.txt' and outputs to the 'src/' directory. --- scripts/gen_assets.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/gen_assets.sh (limited to 'scripts') diff --git a/scripts/gen_assets.sh b/scripts/gen_assets.sh new file mode 100755 index 0000000..e6b7804 --- /dev/null +++ b/scripts/gen_assets.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# generate some assets + +# Ensure tools are built +cmake --build build --target spectool asset_packer + +# Analyze drum sounds +./build/spectool analyze ./assets/wav/kick/Glum\ Kick.wav ./assets/final/kick1.spec +./build/spectool analyze ./assets/wav/snare/Snare\ \(24\).wav ./assets/final/snare1.spec +./build/spectool analyze ./assets/wav/hh/hammock\ hh.wav ./assets/final/hihat1.spec + +# Pack assets into source tree (as requested by Task 9) +./build/asset_packer ./assets/final/demo_assets.txt ./src/assets.h ./src/assets_data.cc \ No newline at end of file -- cgit v1.2.3