diff options
Diffstat (limited to 'toxav/toxav.api.h')
-rw-r--r-- | toxav/toxav.api.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/toxav/toxav.api.h b/toxav/toxav.api.h index 14c6a8e1..84c006b7 100644 --- a/toxav/toxav.api.h +++ b/toxav/toxav.api.h | |||
@@ -654,6 +654,27 @@ int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data | |||
654 | int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, | 654 | int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, |
655 | uint32_t sample_rate); | 655 | uint32_t sample_rate); |
656 | 656 | ||
657 | /* Enable A/V in a groupchat. | ||
658 | * | ||
659 | * return 0 on success. | ||
660 | * return -1 on failure. | ||
661 | * | ||
662 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): | ||
663 | * audio_callback(Tox *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, uint32_t sample_rate, void *userdata) | ||
664 | * | ||
665 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | ||
666 | */ | ||
667 | int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber, | ||
668 | void (*audio_callback)(void *, uint32_t, uint32_t, const int16_t *, unsigned int, uint8_t, uint32_t, void *), | ||
669 | void *userdata); | ||
670 | |||
671 | /* Disable A/V in a groupchat. | ||
672 | * | ||
673 | * return 0 on success. | ||
674 | * return -1 on failure. | ||
675 | */ | ||
676 | int toxav_groupchat_disable_av(Tox *tox, uint32_t groupnumber); | ||
677 | |||
657 | #ifdef __cplusplus | 678 | #ifdef __cplusplus |
658 | } | 679 | } |
659 | #endif | 680 | #endif |