From 7ef8dc4dee732f46ccd037a827f4a6f0814d5848 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 5 Jun 2025 11:21:56 +0200 Subject: [PATCH] filter-graph: a 64 tap hilbert function is a better default 1024 taps for the default hilbert functions seems excessive, use 64 instead. --- spa/plugins/filter-graph/builtin_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spa/plugins/filter-graph/builtin_plugin.c b/spa/plugins/filter-graph/builtin_plugin.c index fea43d307..6f2f0e8fd 100644 --- a/spa/plugins/filter-graph/builtin_plugin.c +++ b/spa/plugins/filter-graph/builtin_plugin.c @@ -794,7 +794,7 @@ static float *create_hilbert(struct plugin *pl, const char *filename, float gain int delay = (int) (delay_sec * rate); if (length <= 0) - length = 1024; + length = 64; length -= SPA_MIN(offset, length); @@ -814,6 +814,7 @@ static float *create_hilbert(struct plugin *pl, const char *filename, float gain samples[delay + h - i] = v; } *n_samples = n; + spa_log_info(pl->log, "created hilbert function"); return samples; } @@ -832,6 +833,7 @@ static float *create_dirac(struct plugin *pl, const char *filename, float gain, samples[delay] = gain; + spa_log_info(pl->log, "created dirac function"); *n_samples = n; return samples; }