From 0f7a6e3ee1b2ed9464287d89c161e6f4da52b505 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 10 Nov 2013 13:51:05 -0800 Subject: [PATCH] make crap_eq work again --- Makefile | 2 +- crap_eq.c | 5 +++-- crap_eq_const.c | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f71accc..aa8ce6b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION = git EXE = design SHOBJ = crap_eq.so crap_eq_const.so MID = -HEADERS = crap_util.h ladspa.h +HEADERS = crap_util.h crap_util_def.h ladspa.h OBJ = ${SHOBJ:.so=.o} ${EXE:=.o} ${MID} SRC = ${OBJ:.o=.c} diff --git a/crap_eq.c b/crap_eq.c index 63d7883..e63a349 100644 --- a/crap_eq.c +++ b/crap_eq.c @@ -146,14 +146,15 @@ run_eq(LADSPA_Handle instance, ulong sample_count) { eq_t *eq = (eq_t *) instance; biquad *filters = eq->filters; + watch_parameters(eq); + const LADSPA_Data *input = eq->input; LADSPA_Data *output = eq->output; for (ulong pos = 0; pos < sample_count; pos++) { LADSPA_Data samp = input[pos]; - for (int i = 0; i < BANDS; i++) { + for (int i = 0; i < BANDS; i++) samp = biquad_run(&filters[i], samp); - } output[pos] = samp; } } diff --git a/crap_eq_const.c b/crap_eq_const.c index acd3738..2700e10 100755 --- a/crap_eq_const.c +++ b/crap_eq_const.c @@ -78,9 +78,8 @@ run_eq(LADSPA_Handle instance, ulong sample_count) { for (ulong pos = 0; pos < sample_count; pos++) { LADSPA_Data samp = input[pos]; - for (int i = 0; i < REALBANDS; i++) { + for (int i = 0; i < REALBANDS; i++) samp = biquad_run(&filters[i], samp); - } output[pos] = samp; } }