mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
channelmix: Prepare for generating LFE channel
Add channelmix.lfe-cutoff property, 0 is disabled Disable upmix by default
This commit is contained in:
parent
4200ca98d6
commit
e51cc5b537
7 changed files with 27 additions and 20 deletions
|
|
@ -385,8 +385,7 @@ static int make_matrix(struct channelmix *mix)
|
|||
spa_log_warn(mix->log, "can't produce FC");
|
||||
}
|
||||
}
|
||||
if (unassigned & _MASK(LFE) &&
|
||||
SPA_FLAG_IS_SET(mix->options, CHANNELMIX_OPTION_FILTER_LFE)) {
|
||||
if (unassigned & _MASK(LFE) && mix->lfe_cutoff > 0.0f) {
|
||||
if ((src_mask & STEREO) == STEREO) {
|
||||
spa_log_debug(mix->log, "produce LFE from STEREO");
|
||||
matrix[LFE][FL] += llev;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue