Commit 474ac279 authored by Ghislain MARY's avatar Ghislain MARY

Revert "Do not limit samplerate to 8000 and 16000 for normal AEC." because...

Revert "Do not limit samplerate to 8000 and 16000 for normal AEC." because right now we can't make the echo canceller work correctly above 16000Hz. We need to handle band splitting.

This reverts commit a1c07e99.
parent a1c07e99
......@@ -371,7 +371,7 @@ static int webrtc_aec_set_sr(MSFilter *f, void *arg) {
int requested_sr = *(int *) arg;
int sr = requested_sr;
if ((s->aec_type == WebRTCAECTypeMobile) && (requested_sr != 8000) && (requested_sr != 16000)) {
if (requested_sr != 8000 && requested_sr != 16000) {
if (requested_sr > 16000) sr = 16000;
else sr = 8000;
ms_message("Webrtc aec does not support sampling rate %i, using %i instead", requested_sr, sr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment