join_av_groupchat


Description:

public static int join_av_groupchat (Tox tox, uint32 friend_number, uint8[] data, GroupchatAudioReceiveFrameCallback callback)

Join a AV group (you need to have been invited first.)

Audio data callback format (same as the one for toxav_add_av_groupchat()): audio_callback(Tox *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t *pcm, unsigned int samples, uint8_t channels, uint32_t sample_rate, void *userdata)

Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)).

Returns:

group number on success

-1 on failure.