From 7f5f807bde0024f1f7482216c431622d0b7aa441 Mon Sep 17 00:00:00 2001 From: tux3 Date: Fri, 4 Dec 2015 18:20:47 +0100 Subject: [PATCH] Fix filter audio Fixes #2504 Fixes #2517 Fixes #1565 --- src/core/coreav.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/coreav.cpp b/src/core/coreav.cpp index 1fcbcb5e9..70c7fab5d 100644 --- a/src/core/coreav.cpp +++ b/src/core/coreav.cpp @@ -264,9 +264,9 @@ bool CoreAV::sendCallAudio(uint32_t callId) call.filterer->startFilter(AUDIO_SAMPLE_RATE); } // is a null op #ifndef ALC_LOOPBACK_CAPTURE_SAMPLES - Audio::getEchoesToFilter(call.filterer, AUDIO_FRAME_SAMPLE_COUNT); + Audio::getEchoesToFilter(call.filterer, AUDIO_FRAME_SAMPLE_COUNT * AUDIO_CHANNELS); - call.filterer->filterAudio(buf, AUDIO_FRAME_SAMPLE_COUNT); + call.filterer->filterAudio(buf, AUDIO_FRAME_SAMPLE_COUNT * AUDIO_CHANNELS); } else if (call.filterer) {