filter-chain: remove some debug

This commit is contained in:
Wim Taymans 2023-10-20 20:39:06 +02:00
parent 8a9a4723f2
commit 0ff4844d87

View file

@ -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[] = {