mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Cut bitrate by half for 1 channel audio.
This commit is contained in:
parent
a9c2fe99d5
commit
4e6f993e7d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user