feat: add WAV load/save and ring buffer implementation

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-11 21:15:12 +00:00
parent 6b490ed739
commit 5a2414b4c3
9 changed files with 319 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
CC ?= gcc
CFLAGS ?= -Wall -Wextra -g -Isrc
LDFLAGS ?= -ljack -lm
LDFLAGS ?= -ljack -lm -lpthread
SRC = src/main.c src/looper.c src/channel.c src/midi.c
SRC = src/main.c src/looper.c src/channel.c src/midi.c src/ringbuffer.c src/wav.c
OBJ = $(SRC:.c=.o)
looper: $(OBJ)
@@ -12,7 +12,7 @@ src/%.o: src/%.c
$(CC) $(CFLAGS) -c -o $@ $<
integration: looper tests/integration.c
$(CC) $(CFLAGS) -o integration_test tests/integration.c -ljack -lm
$(CC) $(CFLAGS) -o integration_test tests/integration.c -ljack -lm -lpthread
./integration_test
test: integration