Cut bitrate by half for 1 channel audio.

This commit is contained in:
irungentoo 2014-11-17 17:16:51 -05:00
parent a9c2fe99d5
commit 4e6f993e7d
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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;