group_send_audio


Description:

public static int group_send_audio (Tox tox, uint32 group_number, int16[] pcm, uint samples, uint8 channels, uint32 sample_rate)

Send audio to the group chat. Note that total size of pcm in bytes is equal to (samples * channels * sizeof(int16_t)).

Valid number of samples are ((sample rate) * (audio length (Valid ones are: 2.5, 5, 10, 20, 40 or 60 ms)) / 1000) Valid number of channels are 1 or 2. Valid sample rates are 8000, 12000, 16000, 24000, or 48000.

Recommended values are: samples = 960, channels = 1, sample_rate = 48000

Returns:

0 on success.

-1 on failure.