@@ -87,7 +87,8 @@ static void terminate_queue(Group_JitterBuffer *q)
8787 free (q );
8888}
8989
90- /** Return 0 if packet was queued, -1 if it wasn't.
90+ /** @retval 0 if packet was queued
91+ * @retval -1 if it wasn't.
9192 */
9293static int queue (Group_JitterBuffer * q , const Mono_Time * mono_time , Group_Audio_Packet * pk )
9394{
@@ -125,7 +126,12 @@ static int queue(Group_JitterBuffer *q, const Mono_Time *mono_time, Group_Audio_
125126 return 0 ;
126127}
127128
128- /** success is 0 when there is nothing to dequeue, 1 when there's a good packet, 2 when there's a lost packet */
129+ /**
130+ * success is:
131+ * - 0 when there is nothing to dequeue
132+ * - 1 when there's a good packet
133+ * - 2 when there's a lost packet
134+ */
129135static Group_Audio_Packet * dequeue (Group_JitterBuffer * q , int * success )
130136{
131137 if (q -> top == q -> bottom ) {
@@ -433,10 +439,10 @@ static int handle_group_audio_packet(void *object, uint32_t groupnumber, uint32_
433439 return 0 ;
434440}
435441
436- /** Enable A/V in a groupchat.
442+ /** @brief Enable A/V in a groupchat.
437443 *
438- * return 0 on success.
439- * return -1 on failure.
444+ * @retval 0 on success.
445+ * @retval -1 on failure.
440446 */
441447int groupchat_enable_av (const Logger * log , Tox * tox , Group_Chats * g_c , uint32_t groupnumber ,
442448 audio_data_cb * audio_callback , void * userdata )
@@ -475,10 +481,10 @@ int groupchat_enable_av(const Logger *log, Tox *tox, Group_Chats *g_c, uint32_t
475481 return 0 ;
476482}
477483
478- /** Disable A/V in a groupchat.
484+ /** @brief Disable A/V in a groupchat.
479485 *
480- * return 0 on success.
481- * return -1 on failure.
486+ * @retval 0 on success.
487+ * @retval -1 on failure.
482488 */
483489int groupchat_disable_av (const Group_Chats * g_c , uint32_t groupnumber )
484490{
@@ -516,17 +522,16 @@ int groupchat_disable_av(const Group_Chats *g_c, uint32_t groupnumber)
516522 return 0 ;
517523}
518524
519- /** Return whether A/V is enabled in the groupchat.
520- */
525+ /** Return whether A/V is enabled in the groupchat. */
521526bool groupchat_av_enabled (const Group_Chats * g_c , uint32_t groupnumber )
522527{
523528 return group_get_object (g_c , groupnumber ) != nullptr ;
524529}
525530
526- /** Create and connect to a new toxav group.
531+ /** @brief Create and connect to a new toxav group.
527532 *
528- * return group number on success.
529- * return -1 on failure.
533+ * @ return group number on success.
534+ * @retval -1 on failure.
530535 */
531536int add_av_groupchat (const Logger * log , Tox * tox , Group_Chats * g_c , audio_data_cb * audio_callback , void * userdata )
532537{
@@ -544,10 +549,10 @@ int add_av_groupchat(const Logger *log, Tox *tox, Group_Chats *g_c, audio_data_c
544549 return groupnumber ;
545550}
546551
547- /** Join a AV group (you need to have been invited first.)
552+ /** @brief Join a AV group (you need to have been invited first).
548553 *
549- * returns group number on success
550- * returns -1 on failure.
554+ * @return group number on success
555+ * @retval -1 on failure.
551556 */
552557int join_av_groupchat (const Logger * log , Tox * tox , Group_Chats * g_c , uint32_t friendnumber , const uint8_t * data ,
553558 uint16_t length , audio_data_cb * audio_callback , void * userdata )
@@ -566,10 +571,10 @@ int join_av_groupchat(const Logger *log, Tox *tox, Group_Chats *g_c, uint32_t fr
566571 return groupnumber ;
567572}
568573
569- /** Send an encoded audio packet to the group chat.
574+ /** @brief Send an encoded audio packet to the group chat.
570575 *
571- * return 0 on success.
572- * return -1 on failure.
576+ * @retval 0 on success.
577+ * @retval -1 on failure.
573578 */
574579static int send_audio_packet (const Group_Chats * g_c , uint32_t groupnumber , const uint8_t * packet , uint16_t length )
575580{
@@ -601,10 +606,10 @@ static int send_audio_packet(const Group_Chats *g_c, uint32_t groupnumber, const
601606 return 0 ;
602607}
603608
604- /** Send audio to the group chat.
609+ /** @brief Send audio to the group chat.
605610 *
606- * return 0 on success.
607- * return -1 on failure.
611+ * @retval 0 on success.
612+ * @retval -1 on failure.
608613 */
609614int group_send_audio (Group_Chats * g_c , uint32_t groupnumber , const int16_t * pcm , unsigned int samples , uint8_t channels ,
610615 uint32_t sample_rate )
0 commit comments