From 9af74b26c94634ef0abca05ae104847ec64bf2ee Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 14 Jun 2017 14:30:14 +0200 Subject: [PATCH] Fixed echo canceller calibrator tool --- coreapi/ec-calibrator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/ec-calibrator.c b/coreapi/ec-calibrator.c index c9101745b..dc8e66d15 100644 --- a/coreapi/ec-calibrator.c +++ b/coreapi/ec-calibrator.c @@ -44,8 +44,8 @@ static void ecc_init_filters(EcCalibrator *ecc){ ecc->read_resampler=ms_factory_create_filter(ecc->factory, MS_RESAMPLE_ID); ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_SAMPLE_RATE,&rate); ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_OUTPUT_SAMPLE_RATE,&ecc->rate); - ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_NCHANNELS,&ecc_channels); - ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_OUTPUT_NCHANNELS,&channels); + ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_NCHANNELS,&channels); + ms_filter_call_method(ecc->read_resampler,MS_FILTER_SET_OUTPUT_NCHANNELS,&ecc_channels); ecc->det=ms_factory_create_filter(ecc->factory, MS_TONE_DETECTOR_ID);