diff options
Diffstat (limited to 'toxav/toxav_old.c')
-rw-r--r-- | toxav/toxav_old.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/toxav/toxav_old.c b/toxav/toxav_old.c index 9ecc7969..e5cfbadc 100644 --- a/toxav/toxav_old.c +++ b/toxav/toxav_old.c | |||
@@ -17,9 +17,9 @@ | |||
17 | * return -1 on failure. | 17 | * return -1 on failure. |
18 | * | 18 | * |
19 | * Audio data callback format: | 19 | * Audio data callback format: |
20 | * audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata) | 20 | * `audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata)` |
21 | * | 21 | * |
22 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 22 | * Note that total size of pcm in bytes is equal to `(samples * channels * sizeof(int16_t))`. |
23 | */ | 23 | */ |
24 | int toxav_add_av_groupchat(Tox *tox, audio_data_cb *audio_callback, void *userdata) | 24 | int toxav_add_av_groupchat(Tox *tox, audio_data_cb *audio_callback, void *userdata) |
25 | { | 25 | { |
@@ -33,10 +33,10 @@ int toxav_add_av_groupchat(Tox *tox, audio_data_cb *audio_callback, void *userda | |||
33 | * returns group number on success | 33 | * returns group number on success |
34 | * returns -1 on failure. | 34 | * returns -1 on failure. |
35 | * | 35 | * |
36 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): | 36 | * Audio data callback format (same as the one for `toxav_add_av_groupchat()`): |
37 | * audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata) | 37 | * `audio_callback(Tox *tox, int groupnumber, int peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, unsigned int sample_rate, void *userdata)` |
38 | * | 38 | * |
39 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 39 | * Note that total size of pcm in bytes is equal to `(samples * channels * sizeof(int16_t))`. |
40 | */ | 40 | */ |
41 | int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data, uint16_t length, | 41 | int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data, uint16_t length, |
42 | audio_data_cb *audio_callback, void *userdata) | 42 | audio_data_cb *audio_callback, void *userdata) |
@@ -51,9 +51,9 @@ int toxav_join_av_groupchat(Tox *tox, uint32_t friendnumber, const uint8_t *data | |||
51 | * return 0 on success. | 51 | * return 0 on success. |
52 | * return -1 on failure. | 52 | * return -1 on failure. |
53 | * | 53 | * |
54 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 54 | * Note that total size of pcm in bytes is equal to `(samples * channels * sizeof(int16_t))`. |
55 | * | 55 | * |
56 | * Valid number of samples are ((sample rate) * (audio length (Valid ones are: 2.5, 5, 10, 20, 40 or 60 ms)) / 1000) | 56 | * Valid number of samples are `((sample rate) * (audio length) / 1000)` (Valid values for audio length: 2.5, 5, 10, 20, 40 or 60 ms) |
57 | * Valid number of channels are 1 or 2. | 57 | * Valid number of channels are 1 or 2. |
58 | * Valid sample rates are 8000, 12000, 16000, 24000, or 48000. | 58 | * Valid sample rates are 8000, 12000, 16000, 24000, or 48000. |
59 | * | 59 | * |
@@ -81,9 +81,9 @@ int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, u | |||
81 | * return -1 on failure. | 81 | * return -1 on failure. |
82 | * | 82 | * |
83 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): | 83 | * Audio data callback format (same as the one for toxav_add_av_groupchat()): |
84 | * 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) | 84 | * `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)` |
85 | * | 85 | * |
86 | * Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)). | 86 | * Note that total size of pcm in bytes is equal to `(samples * channels * sizeof(int16_t))`. |
87 | */ | 87 | */ |
88 | int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber, audio_data_cb *audio_callback, void *userdata) | 88 | int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber, audio_data_cb *audio_callback, void *userdata) |
89 | { | 89 | { |