channelmix: make PSD the default again

We can't have a default that simply copies channels, that's just
wrong. So we enable PSD again.

PSD does a good job of moving the ambient sound to the back. It's
subtle and almost stereo like but it's better than plain stereo.

The stereo widen has been reduced to make it more like the simple
upmixing.

People that previously wanted the copy-channels-experience had to
manually enable this in pulseaudio so it's not too much to ask
to manually switch the algoritm to simple. I think this is a better
default.

Fixes #861
See #2219
This commit is contained in:
Wim Taymans 2022-04-01 11:42:42 +02:00
parent f9e8e689d3
commit 2922b0e108

View file

@ -1655,12 +1655,12 @@ impl_init(const struct spa_handle_factory *factory,
props_reset(&this->props);
this->mix.options = CHANNELMIX_OPTION_UPMIX;
this->mix.upmix = CHANNELMIX_UPMIX_SIMPLE;
this->mix.upmix = CHANNELMIX_UPMIX_PSD;
this->mix.log = this->log;
this->mix.lfe_cutoff = 120.0f;
this->mix.fc_cutoff = 6000.0f;
this->mix.rear_delay = 12.0f;
this->mix.widen = 0.1f;
this->mix.widen = 0.02f;
for (i = 0; info && i < info->n_items; i++) {
const char *k = info->items[i].key;