diff options
author | sudden6 <sudden6@gmx.at> | 2018-02-19 22:58:03 +0100 |
---|---|---|
committer | sudden6 <sudden6@gmx.at> | 2018-02-20 20:58:54 +0100 |
commit | 03b55cde1a98b02f9019f068340094b5062857d1 (patch) | |
tree | 3fd16d56a9546e458d03a47d9e8e8fa68e0f9c16 /toxav/groupav.h | |
parent | c4a734e30462d59d7f9bfe4a865b33936907e0d5 (diff) |
make groupnumber uint32_t
fixes #606
Diffstat (limited to 'toxav/groupav.h')
-rw-r--r-- | toxav/groupav.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/toxav/groupav.h b/toxav/groupav.h index 71b0f55a..142edb0e 100644 --- a/toxav/groupav.h +++ b/toxav/groupav.h | |||
@@ -29,17 +29,16 @@ | |||
29 | * return group number on success. | 29 | * return group number on success. |
30 | * return -1 on failure. | 30 | * return -1 on failure. |
31 | */ | 31 | */ |
32 | int add_av_groupchat(Logger *log, Group_Chats *g_c, void (*audio_callback)(Messenger *, int, int, const int16_t *, | 32 | int add_av_groupchat(Logger *log, Group_Chats *g_c, void (*audio_callback)(Messenger *, uint32_t, uint32_t, |
33 | unsigned int, | 33 | const int16_t *, unsigned int, uint8_t, uint32_t, void *), void *userdata); |
34 | uint8_t, unsigned int, void *), void *userdata); | ||
35 | 34 | ||
36 | /* Join a AV group (you need to have been invited first.) | 35 | /* Join a AV group (you need to have been invited first.) |
37 | * | 36 | * |
38 | * returns group number on success | 37 | * returns group number on success |
39 | * returns -1 on failure. | 38 | * returns -1 on failure. |
40 | */ | 39 | */ |
41 | int join_av_groupchat(Logger *log, Group_Chats *g_c, int32_t friendnumber, const uint8_t *data, uint16_t length, | 40 | int join_av_groupchat(Logger *log, Group_Chats *g_c, uint32_t friendnumber, const uint8_t *data, uint16_t length, |
42 | void (*audio_callback)(Messenger *, int, int, const int16_t *, unsigned int, uint8_t, unsigned int, void *), | 41 | void (*audio_callback)(Messenger *, uint32_t, uint32_t, const int16_t *, unsigned int, uint8_t, uint32_t, void *), |
43 | void *userdata); | 42 | void *userdata); |
44 | 43 | ||
45 | 44 | ||
@@ -48,6 +47,6 @@ int join_av_groupchat(Logger *log, Group_Chats *g_c, int32_t friendnumber, const | |||
48 | * return 0 on success. | 47 | * return 0 on success. |
49 | * return -1 on failure. | 48 | * return -1 on failure. |
50 | */ | 49 | */ |
51 | int group_send_audio(Group_Chats *g_c, int groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, | 50 | int group_send_audio(Group_Chats *g_c, uint32_t groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, |
52 | unsigned int sample_rate); | 51 | uint32_t sample_rate); |
53 | 52 | ||