From 3f35b80402c975c2deac7deef9bb646611ed6330 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 25 Jun 2024 15:33:33 -0400 Subject: [PATCH] spa: aec: webrtc: Fix multichannel processing Missed this parameter while porting to webrtc-audio-processing 1.0. --- spa/plugins/aec/aec-webrtc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/aec/aec-webrtc.cpp b/spa/plugins/aec/aec-webrtc.cpp index a4bf28e12..354ad940c 100644 --- a/spa/plugins/aec/aec-webrtc.cpp +++ b/spa/plugins/aec/aec-webrtc.cpp @@ -171,6 +171,8 @@ static int webrtc_init2(void *object, const struct spa_dict *args, #else webrtc::AudioProcessing::Config config; config.echo_canceller.enabled = true; + config.pipeline.multi_channel_capture = rec_info->channels > 1; + config.pipeline.multi_channel_render = play_info->channels > 1; // FIXME: Example code enables both gain controllers, but that seems sus config.gain_controller1.enabled = gain_control; config.gain_controller1.mode = webrtc::AudioProcessing::Config::GainController1::Mode::kAdaptiveDigital;