From 0ff4844d8746c719c9e4116512bd9d22277d0c38 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Oct 2023 20:39:06 +0200 Subject: [PATCH] filter-chain: remove some debug --- src/modules/module-filter-chain/builtin_plugin.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/module-filter-chain/builtin_plugin.c b/src/modules/module-filter-chain/builtin_plugin.c index c75acff2a..2bb57f0c9 100644 --- a/src/modules/module-filter-chain/builtin_plugin.c +++ b/src/modules/module-filter-chain/builtin_plugin.c @@ -1243,17 +1243,13 @@ static void linear_run(void * Instance, unsigned long SampleCount) float *in = impl->port[1], *out = impl->port[0]; float *ctrl = impl->port[3], *notify = impl->port[2]; - fprintf(stderr, "%f %f %f %f\n", ctrl[0], notify[0], mult, add); - if (in != NULL && out != NULL) { unsigned long n; for (n = 0; n < SampleCount; n++) out[n] = SPA_CLAMPF(in[n] * mult + add, min, max); } - if (ctrl != NULL && notify != NULL) { - fprintf(stderr, "%f %f %f %f\n", ctrl[0], notify[0], mult, add); + if (ctrl != NULL && notify != NULL) notify[0] = SPA_CLAMPF(ctrl[0] * mult + add, min, max); - } } static struct fc_port linear_ports[] = {