mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
efb1208b97
commit
7ef8dc4dee
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue