channelmix: remove LFE when cutoff is <= 0.0

This commit is contained in:
Wim Taymans 2022-02-25 11:08:26 +01:00
parent 6dbdb2eecb
commit 7241bf3c54

View file

@ -215,8 +215,10 @@ static int make_matrix(struct channelmix *mix)
keep |= FRONT;
if (mix->lfe_cutoff > 0.0f)
keep |= _MASK(LFE);
else
keep &= ~_MASK(LFE);
spa_log_debug(mix->log, "unassigned downmix %08" PRIx64, unassigned);
spa_log_debug(mix->log, "unassigned downmix %08" PRIx64 " %08" PRIx64, unassigned, keep);
if (unassigned & FRONT){
if ((dst_mask & STEREO) == STEREO){