summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Locklin <jalockli@uwaterloo.ca>2015-07-31 11:11:32 -0400
committerJason Locklin <jalockli@uwaterloo.ca>2015-07-31 11:11:32 -0400
commitf05fdae055cb01ed03008d964485dfda16b2df18 (patch)
treec2011b1603aeec0658c4d937f395bc86746be269
parentef086a5897ab2f3296ba777e7e1229384981313c (diff)
added documentation
-rw-r--r--toxav/codec.c2
1 files changed, 2 insertions, 0 deletions
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)
308 return -1; 308 return -1;
309 } 309 }
310 310
311 /* Enable in-band forward error correction in codec */
311 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1)); 312 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_INBAND_FEC(1));
312 313
313 if ( rc != OPUS_OK ) { 314 if ( rc != OPUS_OK ) {
@@ -323,6 +324,7 @@ static int init_audio_encoder(CSSession *cs)
323 return -1; 324 return -1;
324 } 325 }
325 326
327 /* Set algorithm to the highest complexity, maximizing compression */
326 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10)); 328 rc = opus_encoder_ctl(cs->audio_encoder, OPUS_SET_COMPLEXITY(10));
327 329
328 if ( rc != OPUS_OK ) { 330 if ( rc != OPUS_OK ) {