summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2015-06-27 16:12:33 +0200
committermannol <eniz_vukovic@hotmail.com>2015-06-27 16:12:33 +0200
commit1ba55d0ca737c21b78471180e90e6e81780aa52c (patch)
tree163ba932f5575e5729a793dd50a22daf29c3602e
parent08bc4eb0e09cb4d4d9724f7bfeae5f4feb3aaf29 (diff)
Added explanation about how audio callback works
-rw-r--r--other/apidsl/toxav.in.h6
-rw-r--r--toxav/toxav.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/other/apidsl/toxav.in.h b/other/apidsl/toxav.in.h
index 59a46612..6e50d0d5 100644
--- a/other/apidsl/toxav.in.h
+++ b/other/apidsl/toxav.in.h
@@ -578,8 +578,10 @@ namespace video {
578namespace audio { 578namespace audio {
579 event receive_frame { 579 event receive_frame {
580 /** 580 /**
581 * The function type for the ${event receive_frame} callback. 581 * The function type for the ${event receive_frame} callback. The callback can be
582 * 582 * called multiple times per single iteration depending on the amount of queued
583 * frames in the buffer.
584 *
583 * @param friend_number The friend number of the friend who sent an audio frame. 585 * @param friend_number The friend number of the friend who sent an audio frame.
584 * @param pcm An array of audio samples (sample_count * channels elements). 586 * @param pcm An array of audio samples (sample_count * channels elements).
585 * @param sample_count The number of audio samples per channel in the PCM array. 587 * @param sample_count The number of audio samples per channel in the PCM array.
diff --git a/toxav/toxav.h b/toxav/toxav.h
index 2094f66c..917a6bf5 100644
--- a/toxav/toxav.h
+++ b/toxav/toxav.h
@@ -592,7 +592,9 @@ bool toxav_video_send_frame(ToxAV *toxAV, uint32_t friend_number, uint16_t width
592 * 592 *
593 ******************************************************************************/ 593 ******************************************************************************/
594/** 594/**
595 * The function type for the audio_receive_frame callback. 595 * The function type for the audio_receive_frame callback. The callback can be
596 * called multiple times per single iteration depending on the amount of queued
597 * frames in the buffer.
596 * 598 *
597 * @param friend_number The friend number of the friend who sent an audio frame. 599 * @param friend_number The friend number of the friend who sent an audio frame.
598 * @param pcm An array of audio samples (sample_count * channels elements). 600 * @param pcm An array of audio samples (sample_count * channels elements).