mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: produce STEREO from FC
Make it possible to produce STEREO from FC.
This commit is contained in:
parent
b03b57c77a
commit
da9868594d
1 changed files with 9 additions and 0 deletions
|
|
@ -399,6 +399,15 @@ static int make_matrix(struct channelmix *mix)
|
|||
spa_log_debug(mix->log, "unassigned upmix %08"PRIx64" lfe:%f",
|
||||
unassigned, mix->lfe_cutoff);
|
||||
|
||||
if (unassigned & STEREO) {
|
||||
if ((src_mask & FRONT) == FRONT) {
|
||||
spa_log_debug(mix->log, "produce STEREO from FC");
|
||||
_MATRIX(FL,FC) += clev;
|
||||
_MATRIX(FR,FC) += clev;
|
||||
} else {
|
||||
spa_log_warn(mix->log, "can't produce STEREO");
|
||||
}
|
||||
}
|
||||
if (unassigned & FRONT) {
|
||||
if ((src_mask & STEREO) == STEREO) {
|
||||
spa_log_debug(mix->log, "produce FC from STEREO");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue