mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
added documentation
This commit is contained in:
parent
ef086a5897
commit
f05fdae055
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user