the other way works better revert 91ffe171b6 to use high quality on stereo calls

This commit is contained in:
Anthony Minessale 2014-10-02 10:41:59 -05:00
parent 9486a645f8
commit eeedb8683e
1 changed files with 1 additions and 1 deletions

View File

@ -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));