channelmix: enable normalization by default

It is probably a better default to avoid clipping when downmixing.
This commit is contained in:
Wim Taymans 2022-01-11 10:40:42 +01:00
parent 982758ffed
commit 0ad318f61c
4 changed files with 5 additions and 3 deletions

View file

@ -1539,6 +1539,8 @@ impl_init(const struct spa_handle_factory *factory,
props_reset(&this->props); props_reset(&this->props);
this->mix.options = CHANNELMIX_OPTION_NORMALIZE;
for (i = 0; info && i < info->n_items; i++) { for (i = 0; info && i < info->n_items; i++) {
const char *k = info->items[i].key; const char *k = info->items[i].key;
const char *s = info->items[i].value; const char *s = info->items[i].value;

View file

@ -75,7 +75,7 @@ stream.properties = {
#node.latency = 1024/48000 #node.latency = 1024/48000
#node.autoconnect = true #node.autoconnect = true
#resample.quality = 4 #resample.quality = 4
#channelmix.normalize = false #channelmix.normalize = true
#channelmix.mix-lfe = true #channelmix.mix-lfe = true
#channelmix.upmix = false #channelmix.upmix = false
#channelmix.lfe-cutoff = 0 #channelmix.lfe-cutoff = 0

View file

@ -65,7 +65,7 @@ stream.properties = {
#node.latency = 1024/48000 #node.latency = 1024/48000
#node.autoconnect = true #node.autoconnect = true
#resample.quality = 4 #resample.quality = 4
#channelmix.normalize = false #channelmix.normalize = true
#channelmix.mix-lfe = false #channelmix.mix-lfe = false
#channelmix.upmix = false #channelmix.upmix = false
#channelmix.lfe-cutoff = 0 #channelmix.lfe-cutoff = 0

View file

@ -73,7 +73,7 @@ stream.properties = {
#node.latency = 1024/48000 #node.latency = 1024/48000
#node.autoconnect = true #node.autoconnect = true
#resample.quality = 4 #resample.quality = 4
#channelmix.normalize = false #channelmix.normalize = true
#channelmix.mix-lfe = false #channelmix.mix-lfe = false
#channelmix.upmix = false #channelmix.upmix = false
#channelmix.lfe-cutoff = 0 #channelmix.lfe-cutoff = 0