From: Anthony Minessale Date: Thu, 2 Oct 2014 15:41:59 +0000 (-0500) Subject: the other way works better revert 91ffe171b6e76f60f1e94f148176ce8556d460e6 to use... X-Git-Tag: v1.4.10~1^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeedb8683e1ab9f5b7e84fa8a561850b1241da86;p=thirdparty%2Ffreeswitch.git the other way works better revert 91ffe171b6e76f60f1e94f148176ce8556d460e6 to use high quality on stereo calls --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 23dff7a544..5a9593463f 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -276,7 +276,7 @@ static switch_status_t switch_opus_init(switch_codec_t *codec, switch_codec_flag context->encoder_object = opus_encoder_create(samplerate, codec->implementation->number_of_channels, - OPUS_APPLICATION_VOIP, &err); + codec->implementation->number_of_channels == 1 ? OPUS_APPLICATION_VOIP : OPUS_APPLICATION_AUDIO, &err); if (err != OPUS_OK) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create encoder: %s\n", opus_strerror(err));