mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: improve corssover processing
Apply volume after crossover, optimize when disabled or silent.
This commit is contained in:
parent
168511c157
commit
d62d2764e8
5 changed files with 52 additions and 43 deletions
|
|
@ -457,9 +457,8 @@ done:
|
|||
if (i == _CH(LFE) && mix->lfe_cutoff > 0.0f) {
|
||||
spa_log_debug(mix->log, "channel %d is LFE", ic);
|
||||
lr4_set(&mix->lr4[ic], BQ_LOWPASS, mix->lfe_cutoff / mix->freq);
|
||||
mix->lr4_info[ic] = 1;
|
||||
} else {
|
||||
mix->lr4_info[ic] = 0;
|
||||
mix->lr4[ic].active = false;
|
||||
}
|
||||
ic++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue