diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2018-08-17 19:22:18 +0200 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2018-08-19 23:41:43 +0200 |
commit | 14484c6879ff5796d962b49aa76a7f3e04c2319c (patch) | |
tree | c02cf58bb7e047d01f5493d811a75eec2dfaecee /toxav/audio.h | |
parent | e32e0b3402006dabfc44e9a3eb1e806d9d3fc00d (diff) |
make Mono_Time an argument to current_time_monotonic
Diffstat (limited to 'toxav/audio.h')
-rw-r--r-- | toxav/audio.h | 7 |
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 | ||
52 | typedef struct ACSession_s { | 52 | typedef 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 | ||
80 | ACSession *ac_new(const Logger *log, ToxAV *av, uint32_t friend_number, toxav_audio_receive_frame_cb *cb, | 81 | ACSession *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); |
82 | void ac_kill(ACSession *ac); | 83 | void ac_kill(ACSession *ac); |
83 | void ac_iterate(ACSession *ac); | 84 | void ac_iterate(ACSession *ac); |
84 | int ac_queue_message(void *acp, struct RTPMessage *msg); | 85 | int ac_queue_message(const Mono_Time *mono_time, void *acp, struct RTPMessage *msg); |
85 | int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels); | 86 | int 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 */ |