spa: aec: webrtc: Actually enable echo cancellation for 2.0

This commit is contained in:
Arun Raghavan 2025-07-09 08:52:55 -04:00 committed by Wim Taymans
parent 8ecdddeb04
commit af7ce19919

View file

@ -191,6 +191,7 @@ static int webrtc_init2(void *object, const struct spa_dict *args,
config.voice_detection.enabled = voice_detection;
#elif defined(HAVE_WEBRTC2)
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