summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAndre Bezerra <amelco.herman@gmail.com>2026-11-17 13:09:49 -0300
committerAndre Bezerra <amelco.herman@gmail.com>2026-11-17 13:09:49 -0300
commit719c62b10468985c76b39e1002dc861b1f654a53 (patch)
tree1b68b1dec9251baa00336a155dfbbc1ab696eed2 /build.sh
parent433cc1890a77e6c16583e1d65ad71645c7463826 (diff)
Replace the hand-written WAV reader and writer with dr_wavmaster
Vendor dr_wav 0.14.7 at ebfea72a, keep the strict RIFF/sample checks, extract wav_writer for stem and metronome output, and leave mpv and MP3 unchanged.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index f98cb19..7de4f45 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
set -eu
cd -- "$(dirname -- "$0")"
gcc -std=c11 -O3 -DNDEBUG -Wall -Wextra -Wpedantic \
- -Ithird_party/onnxruntime/include -Ithird_party/dr_mp3 \
- main.c audio.c audio_wav.c audio_mp3.c playback.c metronome.c \
+ -Ithird_party/onnxruntime/include -Ithird_party/dr_mp3 -Ithird_party/dr_wav \
+ main.c audio.c audio_wav.c audio_mp3.c playback.c metronome.c wav_writer.c \
-Lthird_party/onnxruntime/lib -Wl,-rpath,\$ORIGIN/third_party/onnxruntime/lib \
-Wl,--no-as-needed -lonnxruntime -lm -ldl -pthread -o stemsep