mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
use OPUS_APPLICATION_VOIP always to get FEC and filtering
This commit is contained in:
parent
8258180735
commit
91ffe171b6
@ -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,
|
context->encoder_object = opus_encoder_create(samplerate,
|
||||||
codec->implementation->number_of_channels,
|
codec->implementation->number_of_channels,
|
||||||
codec->implementation->number_of_channels == 1 ? OPUS_APPLICATION_VOIP : OPUS_APPLICATION_AUDIO, &err);
|
OPUS_APPLICATION_VOIP, &err);
|
||||||
|
|
||||||
if (err != OPUS_OK) {
|
if (err != OPUS_OK) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create encoder: %s\n", opus_strerror(err));
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot create encoder: %s\n", opus_strerror(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user