Commit a1c07e99 authored by Ghislain MARY's avatar Ghislain MARY

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

parent 3256bf12
......@@ -371,7 +371,7 @@ static int webrtc_aec_set_sr(MSFilter *f, void *arg) {
int requested_sr = *(int *) arg;
int sr = requested_sr;
if (requested_sr != 8000 && requested_sr != 16000) {
if ((s->aec_type == WebRTCAECTypeMobile) && (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