channelmix: add more generic upmixing

Add options to enable lfe filtering and upmix.
Enable upmix by default, lfe is disabled because we don't actually
do a lowpass filter yet.
This commit is contained in:
Wim Taymans 2021-03-06 21:31:18 +01:00
parent c7309f0248
commit 6324298bc5
6 changed files with 67 additions and 17 deletions

View file

@ -48,6 +48,8 @@ struct channelmix {
uint32_t cpu_flags;
#define CHANNELMIX_OPTION_MIX_LFE (1<<0) /**< mix LFE */
#define CHANNELMIX_OPTION_NORMALIZE (1<<1) /**< normalize volumes */
#define CHANNELMIX_OPTION_UPMIX (1<<2) /**< do simple upmixing */
#define CHANNELMIX_OPTION_FILTER_LFE (1<<3) /**< generate and filter LFE */
uint32_t options;
struct spa_log *log;