Send an audio frame to a friend.
The expected format of the PCM data is: [s1c1][s1c2][...][s2c1][s2c2][...]... Meaning: sample 1 for channel 1, sample 1 for channel 2, ... For mono audio, this has no meaning, every sample is subsequent. For stereo, this means the expected format is LRLRLR... with samples for left and right alternating.
friend_number |
The friend number of the friend to which to send an audio frame. |
pcm |
An array of audio samples. The size of this array must be sample_count * channels. |
sample_count |
Number of samples in this frame. Valid numbers here are ((sample rate) * (audio length) / 1000), where audio length can be 2.5, 5, 10, 20, 40 or 60 millseconds. |
channels |
Number of audio channels. Supported values are 1 and 2. |
sampling_rate |
Audio sampling rate used in this frame. Valid sampling rates are 8000, 12000, 16000, 24000, or 48000. |