summaryrefslogtreecommitdiff
path: root/toxav/groupav.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/groupav.h')
-rw-r--r--toxav/groupav.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/toxav/groupav.h b/toxav/groupav.h
index 42f2c578..4d9efafb 100644
--- a/toxav/groupav.h
+++ b/toxav/groupav.h
@@ -27,13 +27,15 @@
27 27
28#define GROUP_AUDIO_PACKET_ID 192 28#define GROUP_AUDIO_PACKET_ID 192
29 29
30typedef void audio_data_cb(void *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t *pcm,
31 uint32_t samples, uint8_t channels, uint32_t sample_rate, void *userdata);
32
30/* Create a new toxav group. 33/* Create a new toxav group.
31 * 34 *
32 * return group number on success. 35 * return group number on success.
33 * return -1 on failure. 36 * return -1 on failure.
34 */ 37 */
35int add_av_groupchat(const Logger *log, Group_Chats *g_c, void (*audio_callback)(Messenger *, uint32_t, uint32_t, 38int add_av_groupchat(const Logger *log, Group_Chats *g_c, audio_data_cb *audio_callback, void *userdata);
36 const int16_t *, unsigned int, uint8_t, uint32_t, void *), void *userdata);
37 39
38/* Join a AV group (you need to have been invited first.) 40/* Join a AV group (you need to have been invited first.)
39 * 41 *
@@ -41,8 +43,7 @@ int add_av_groupchat(const Logger *log, Group_Chats *g_c, void (*audio_callback)
41 * returns -1 on failure. 43 * returns -1 on failure.
42 */ 44 */
43int join_av_groupchat(const Logger *log, Group_Chats *g_c, uint32_t friendnumber, const uint8_t *data, uint16_t length, 45int join_av_groupchat(const Logger *log, Group_Chats *g_c, uint32_t friendnumber, const uint8_t *data, uint16_t length,
44 void (*audio_callback)(Messenger *, uint32_t, uint32_t, const int16_t *, unsigned int, uint8_t, uint32_t, void *), 46 audio_data_cb *audio_callback, void *userdata);
45 void *userdata);
46 47
47 48
48/* Send audio to the group chat. 49/* Send audio to the group chat.