From 7241bf3c541dd44926be827c8a6918a84756a074 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 25 Feb 2022 11:08:26 +0100 Subject: [PATCH] channelmix: remove LFE when cutoff is <= 0.0 --- spa/plugins/audioconvert/channelmix-ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/channelmix-ops.c b/spa/plugins/audioconvert/channelmix-ops.c index 72346ed47..defcc0fce 100644 --- a/spa/plugins/audioconvert/channelmix-ops.c +++ b/spa/plugins/audioconvert/channelmix-ops.c @@ -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){