diff options
Diffstat (limited to 'toxav/toxav.api.h')
-rw-r--r-- | toxav/toxav.api.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/toxav/toxav.api.h b/toxav/toxav.api.h index 71cd5aec..9e6cea68 100644 --- a/toxav/toxav.api.h +++ b/toxav/toxav.api.h | |||
@@ -612,12 +612,12 @@ namespace video { | |||
612 | * return -1 on failure. | 612 | * return -1 on failure. |
613 | * | 613 | * |
614 | * Audio data callback format: | 614 | * Audio data callback format: |
615 | * audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata) | 615 | * 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) |
616 | * | 616 | * |
617 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 617 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). |
618 | */ | 618 | */ |
619 | int toxav_add_av_groupchat(Tox *tox, void (*audio_callback)(void *, int, int, const int16_t *, unsigned int, uint8_t, | 619 | int toxav_add_av_groupchat(Tox *tox, void (*audio_callback)(void *, uint32_t, uint32_t, const int16_t *, unsigned int, uint8_t, |
620 | unsigned int, void *), void *userdata); | 620 | uint32_t, void *), void *userdata); |
621 | 621 | ||
622 | /* Join a AV group (you need to have been invited first.) | 622 | /* Join a AV group (you need to have been invited first.) |
623 | * | 623 | * |
@@ -625,12 +625,12 @@ int toxav_add_av_groupchat(Tox *tox, void (*audio_callback)(void *, int, int, co | |||
625 | * returns -1 on failure. | 625 | * returns -1 on failure. |
626 | * | 626 | * |
627 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): | 627 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): |
628 | * audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata) | 628 | * 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) |
629 | * | 629 | * |
630 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 630 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). |
631 | */ | 631 | */ |
632 | int toxav_join_av_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, uint16_t length, | 632 | int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data, uint16_t length, |
633 | void (*audio_callback)(void *, int, int, const int16_t *, unsigned int, uint8_t, unsigned int, void *), void *userdata); | 633 | void (*audio_callback)(void *, uint32_t, uint32_t, const int16_t *, unsigned int, uint8_t, uint32_t, void *), void *userdata); |
634 | 634 | ||
635 | /* Send audio to the group chat. | 635 | /* Send audio to the group chat. |
636 | * | 636 | * |
@@ -645,8 +645,8 @@ int toxav_join_av_groupchat(Tox *tox, int32_t friendnumber, const uint8_t *data, | |||
645 | * | 645 | * |
646 | * Recommended values are: samples = 960, channels = 1, sample_rate = 48000 | 646 | * Recommended values are: samples = 960, channels = 1, sample_rate = 48000 |
647 | */ | 647 | */ |
648 | int toxav_group_send_audio(Tox *tox, int groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, | 648 | int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, unsigned int samples, uint8_t channels, |
649 | unsigned int sample_rate); | 649 | uint32_t sample_rate); |
650 | 650 | ||
651 | #ifdef __cplusplus | 651 | #ifdef __cplusplus |
652 | } | 652 | } |