mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
channelmix: add simple upmix method
Add a property to select the upmix method. PSD is enabled by default but a new simple upmixing algorithm is available that duplicates channels and avoids lowpass filter on the FC and disables widening. Fixes #861
This commit is contained in:
parent
cec8898740
commit
bc5b486cb9
8 changed files with 98 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ static int make_matrix(struct channelmix *mix)
|
|||
unassigned = src_mask & ~dst_mask;
|
||||
keep = dst_mask & ~src_mask;
|
||||
|
||||
if (!SPA_FLAG_IS_SET(mix->options, CHANNELMIX_OPTION_UPMIX))
|
||||
if (!SPA_FLAG_IS_SET(mix->options, CHANNELMIX_OPTION_UPMIX) ||
|
||||
mix->upmix == CHANNELMIX_UPMIX_NONE)
|
||||
keep = 0;
|
||||
|
||||
keep |= FRONT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue