audioconvert: add delay to rear channels when upmixing

See #861
This commit is contained in:
Wim Taymans 2022-03-01 09:53:40 +01:00
parent d62d2764e8
commit 5a307c11e1
9 changed files with 141 additions and 26 deletions

View file

@ -544,11 +544,13 @@ int channelmix_init(struct channelmix *mix)
if (info == NULL)
return -ENOTSUP;
spa_log_debug(mix->log, "selected %s", info->name);
mix->free = impl_channelmix_free;
mix->process = info->process;
mix->set_volume = impl_channelmix_set_volume;
mix->cpu_flags = info->cpu_flags;
mix->delay = mix->rear_delay * mix->freq / 1000.0f;
spa_log_debug(mix->log, "selected %s delay:%d", info->name, mix->delay);
return make_matrix(mix);
}