summaryrefslogtreecommitdiff
path: root/toxav/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/audio.h')
-rw-r--r--toxav/audio.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/toxav/audio.h b/toxav/audio.h
index f71aaed3..6a19e6b6 100644
--- a/toxav/audio.h
+++ b/toxav/audio.h
@@ -50,6 +50,7 @@
50#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2) 50#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2)
51 51
52typedef struct ACSession_s { 52typedef struct ACSession_s {
53 const Mono_Time *mono_time;
53 const Logger *log; 54 const Logger *log;
54 55
55 /* encoding */ 56 /* encoding */
@@ -77,11 +78,11 @@ typedef struct ACSession_s {
77 void *acb_user_data; 78 void *acb_user_data;
78} ACSession; 79} ACSession;
79 80
80ACSession *ac_new(const Logger *log, ToxAV *av, uint32_t friend_number, toxav_audio_receive_frame_cb *cb, 81ACSession *ac_new(const Mono_Time *mono_time, const Logger *log, ToxAV *av, uint32_t friend_number,
81 void *cb_data); 82 toxav_audio_receive_frame_cb *cb, void *cb_data);
82void ac_kill(ACSession *ac); 83void ac_kill(ACSession *ac);
83void ac_iterate(ACSession *ac); 84void ac_iterate(ACSession *ac);
84int ac_queue_message(void *acp, struct RTPMessage *msg); 85int ac_queue_message(const Mono_Time *mono_time, void *acp, struct RTPMessage *msg);
85int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels); 86int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels);
86 87
87#endif /* AUDIO_H */ 88#endif /* AUDIO_H */