mirror of
https://github.com/TokTok/c-toxcore
synced 2026-09-27 04:58:33 +00:00
put toxav.h stuff in toxav.api.h
This commit is contained in:
@@ -655,6 +655,14 @@ int toxav_group_send_audio(Tox *tox, uint32_t groupnumber, const int16_t *pcm, u
|
||||
uint32_t sample_rate);
|
||||
|
||||
/* Enable A/V in a groupchat.
|
||||
*
|
||||
* A/V must be enabled on a groupchat for audio to be sent to it and for
|
||||
* received audio to be handled.
|
||||
*
|
||||
* An A/V group created with toxav_add_av_groupchat or toxav_join_av_groupchat
|
||||
* will start with A/V enabled.
|
||||
*
|
||||
* An A/V group loaded from a savefile will start with A/V disabled.
|
||||
*
|
||||
* return 0 on success.
|
||||
* return -1 on failure.
|
||||
@@ -675,6 +683,10 @@ int toxav_groupchat_enable_av(Tox *tox, uint32_t groupnumber,
|
||||
*/
|
||||
int toxav_groupchat_disable_av(Tox *tox, uint32_t groupnumber);
|
||||
|
||||
/* Return whether A/V is enabled in the groupchat.
|
||||
*/
|
||||
bool toxav_groupchat_av_enabled(Tox *tox, uint32_t groupnumber);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user