diff --git a/toxav/group.c b/toxav/group.c index 36c30bc6..529167bf 100644 --- a/toxav/group.c +++ b/toxav/group.c @@ -503,7 +503,12 @@ int group_send_audio(Group_Chats *g_c, int groupnumber, const int16_t *pcm, unsi if (!group_av->audio_encoder || group_av->audio_channels != channels || group_av->audio_sample_rate != sample_rate) { group_av->audio_channels = channels; group_av->audio_sample_rate = sample_rate; - group_av->audio_bitrate = 64000; //TODO: add way of adjusting bitrate + + if (channels == 1) { + group_av->audio_bitrate = 32000; //TODO: add way of adjusting bitrate + } else { + group_av->audio_bitrate = 64000; //TODO: add way of adjusting bitrate + } if (recreate_encoder(group_av) == -1) return -1;