Wim Taymans
54f6f9293e
channelmix: upmix disabled also disables FC and LFE generation
...
Don't generate FC and LFE when upmix is disabled.
Fixes #2266
2022-04-04 09:08:54 +02:00
Wim Taymans
b7279a1728
channelmix: dont make FC from synthesized FC
...
When we have stereo and need to make FC, don't try to upmix the
stereo into FC again.
Fix unit test now that we create FC channels.
2022-01-11 17:25:38 +01:00
Wim Taymans
6b34b8c44e
audioconvert: fix mono channel mix test
...
When we have a single MONO channel, distribute and average. Otherwise,
use the logic to do proper mixing.
Adjust the unit test accordingly.
2021-12-09 16:51:40 +01:00
Peter Hutterer
49f3d5842e
test: replace all spa_assert() macros with spa_assert_se()
...
These are tests, we never want those to be optimized away.
2021-07-27 10:24:44 +10:00
Wim Taymans
6b0abd2057
channelmix: Improve unknown channel layout handling
...
Clamp position to valid range. so that AUX becomes UNKNOWN.
If we have one mono source channel and unknown destination, copy it
to all destination channels.
If we have one mono destination channel and unknown source layout,
average all channels.
Otherwise, pair source and dest channels.
See #538
2021-01-15 17:51:07 +01:00
Wim Taymans
0d35f44fd9
tests: add channelmix test
2019-08-29 14:05:02 +02:00