filter-graph: a 64 tap hilbert function is a better default

1024 taps for the default hilbert functions seems excessive, use 64
instead.
This commit is contained in:
Wim Taymans 2025-06-05 11:21:56 +02:00
parent efb1208b97
commit 7ef8dc4dee

View file

@ -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;
}