diff options
author | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-09-11 16:27:03 -0700 |
---|---|---|
committer | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-09-17 14:05:51 -0700 |
commit | 21f8db12c45bd56293262cd4abfb73cd9abec821 (patch) | |
tree | 580729367d00e1eb7e0c4d533777d22af7d7ffc5 /toxav/audio.h | |
parent | 5da85c582d97d746887da407153afc0acf0a4215 (diff) |
Make ToxAV stateless
Diffstat (limited to 'toxav/audio.h')
-rw-r--r-- | toxav/audio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxav/audio.h b/toxav/audio.h index 5f9d7f7d..60bad163 100644 --- a/toxav/audio.h +++ b/toxav/audio.h | |||
@@ -55,12 +55,12 @@ typedef struct ACSession_s { | |||
55 | 55 | ||
56 | ToxAV *av; | 56 | ToxAV *av; |
57 | uint32_t friend_number; | 57 | uint32_t friend_number; |
58 | PAIR(toxav_audio_receive_frame_cb *, void *) acb; /* Audio frame receive callback */ | 58 | toxav_audio_receive_frame_cb *on_audio_frame; /* Audio frame receive callback */ |
59 | } ACSession; | 59 | } ACSession; |
60 | 60 | ||
61 | ACSession *ac_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_audio_receive_frame_cb *cb, void *cb_data); | 61 | ACSession *ac_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_audio_receive_frame_cb *cb); |
62 | void ac_kill(ACSession *ac); | 62 | void ac_kill(ACSession *ac); |
63 | void ac_iterate(ACSession *ac); | 63 | void ac_iterate(ACSession *ac, void *userdata); |
64 | int ac_queue_message(void *acp, struct RTPMessage *msg); | 64 | int ac_queue_message(void *acp, struct RTPMessage *msg); |
65 | int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels); | 65 | int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels); |
66 | 66 | ||