From f05fdae055cb01ed03008d964485dfda16b2df18 Mon Sep 17 00:00:00 2001 From: Jason Locklin Date: Fri, 31 Jul 2015 11:11:32 -0400 Subject: [PATCH] added documentation --- toxav/codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toxav/codec.c b/toxav/codec.c index 9f705db4..81bbede6 100644 --- a/toxav/codec.c +++ b/toxav/codec.c @@ -308,6 +308,7 @@ static int init_audio_encoder(CSSession *cs) return -1; } + /* Enable in-band forward error correction in codec */ rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1)); if ( rc != OPUS_OK ) { @@ -323,6 +324,7 @@ static int init_audio_encoder(CSSession *cs) return -1; } + /* Set algorithm to the highest complexity, maximizing compression */ rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10)); if ( rc != OPUS_OK ) {