mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
channelmix: add default channelmap for 5 and 7 channels
This commit is contained in:
parent
950e81c5fb
commit
3eafa6312f
1 changed files with 4 additions and 1 deletions
|
|
@ -168,14 +168,17 @@ static uint64_t default_mask(uint32_t channels)
|
|||
{
|
||||
uint64_t mask = 0;
|
||||
switch (channels) {
|
||||
case 7:
|
||||
case 8:
|
||||
mask |= _MASK(RL);
|
||||
mask |= _MASK(RR);
|
||||
/* fallthrough */
|
||||
case 5:
|
||||
case 6:
|
||||
mask |= _MASK(SL);
|
||||
mask |= _MASK(SR);
|
||||
mask |= _MASK(LFE);
|
||||
if ((channels & 1) == 0)
|
||||
mask |= _MASK(LFE);
|
||||
/* fallthrough */
|
||||
case 3:
|
||||
mask |= _MASK(FC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue