mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
audioconvert: add LFE filter
Use a lowpass filter to generate LFE from the stereo channels.
This commit is contained in:
parent
e51cc5b537
commit
14e8073d18
8 changed files with 261 additions and 0 deletions
|
|
@ -429,6 +429,8 @@ done:
|
|||
continue;
|
||||
mix->matrix_orig[ic][jc++] = matrix[i][j];
|
||||
sum += fabs(matrix[i][j]);
|
||||
if (i == LFE)
|
||||
lr4_set(&mix->lr4[ic], BQ_LOWPASS, mix->lfe_cutoff / mix->freq);
|
||||
}
|
||||
maxsum = SPA_MAX(maxsum, sum);
|
||||
ic++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue