summaryrefslogtreecommitdiff
path: root/toxav/toxav.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxav.h')
-rw-r--r--toxav/toxav.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/toxav/toxav.h b/toxav/toxav.h
index 34c8be5d..db261fd8 100644
--- a/toxav/toxav.h
+++ b/toxav/toxav.h
@@ -382,6 +382,31 @@ Tox *toxav_get_tox(ToxAv *av);
382 382
383int toxav_has_activity ( ToxAv *av, int32_t call_index, int16_t *PCM, uint16_t frame_size, float ref_energy ); 383int toxav_has_activity ( ToxAv *av, int32_t call_index, int16_t *PCM, uint16_t frame_size, float ref_energy );
384 384
385
386/* Create a new toxav group.
387 *
388 * return group number on success.
389 * return -1 on failure.
390 */
391int toxav_add_av_groupchat(Tox *tox, void (*audio_callback)(Tox *, int, int, const int16_t *, unsigned int, uint8_t,
392 unsigned int, void *), void *userdata);
393
394/* Join a AV group (you need to have been invited first.)
395 *
396 * returns group number on success
397 * returns -1 on failure.
398 */
399int toxav_join_av_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, uint16_t length,
400 void (*audio_callback)(Tox *, int, int, const int16_t *, unsigned int, uint8_t, unsigned int, void *), void *userdata);
401
402/* Send audio to the group chat.
403 *
404 * return 0 on success.
405 * return -1 on failure.
406 */
407int toxav_group_send_audio(Tox *tox, int groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels,
408 unsigned int sample_rate);
409
385#ifdef __cplusplus 410#ifdef __cplusplus
386} 411}
387#endif 412#endif