diff options
-rw-r--r-- | toxav/group.c | 3 | ||||
-rw-r--r-- | toxav/toxav.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/toxav/group.c b/toxav/group.c index 2536c6b7..452fdbde 100644 --- a/toxav/group.c +++ b/toxav/group.c | |||
@@ -496,8 +496,7 @@ int group_send_audio(Group_Chats *g_c, int groupnumber, const int16_t *pcm, unsi | |||
496 | if (channels != 1 && channels != 2) | 496 | if (channels != 1 && channels != 2) |
497 | return -1; | 497 | return -1; |
498 | 498 | ||
499 | //TODO: allow different sample rates | 499 | if (sample_rate != 8000 && sample_rate != 12000 && sample_rate != 16000 && sample_rate != 24000 && sample_rate != 48000) |
500 | if (sample_rate != 48000) | ||
501 | return -1; | 500 | return -1; |
502 | 501 | ||
503 | if (!group_av->audio_encoder || group_av->audio_channels != channels || group_av->audio_sample_rate != sample_rate) { | 502 | if (!group_av->audio_encoder || group_av->audio_channels != channels || group_av->audio_sample_rate != sample_rate) { |
diff --git a/toxav/toxav.h b/toxav/toxav.h index 77afda81..b433ca13 100644 --- a/toxav/toxav.h +++ b/toxav/toxav.h | |||
@@ -421,8 +421,6 @@ int toxav_join_av_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, | |||
421 | * Valid sample rates are 8000, 12000, 16000, 24000, or 48000. | 421 | * Valid sample rates are 8000, 12000, 16000, 24000, or 48000. |
422 | * | 422 | * |
423 | * Recommended values are: samples = 960, channels = 1, sample_rate = 48000 | 423 | * Recommended values are: samples = 960, channels = 1, sample_rate = 48000 |
424 | * | ||
425 | * TODO: currently the only supported sample rate is 48000. | ||
426 | */ | 424 | */ |
427 | int toxav_group_send_audio(Tox *tox, int groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, | 425 | int toxav_group_send_audio(Tox *tox, int groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, |
428 | unsigned int sample_rate); | 426 | unsigned int sample_rate); |