mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: Only filter FC/LFE when present
This commit is contained in:
parent
7b432aec88
commit
0c47ab76a7
2 changed files with 5 additions and 2 deletions
|
|
@ -199,8 +199,11 @@ static int make_matrix(struct channelmix *mix)
|
|||
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++)
|
||||
matrix[i][i]= 1.0f;
|
||||
}
|
||||
if (dst_mask & FRONT)
|
||||
filter_fc = true;
|
||||
if (dst_mask & _MASK(LFE))
|
||||
filter_lfe = true;
|
||||
src_mask = dst_mask = ~0LU;
|
||||
filter_fc = filter_lfe = true;
|
||||
goto done;
|
||||
} else {
|
||||
spa_log_debug(mix->log, "matching channels");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue