The function type for the audio_receive_frame callback. The callback can be called multiple times per single iteration depending on the amount of queued frames in the buffer. The received format is the same as in send function.
friend_number |
The friend number of the friend who sent an audio frame. |
pcm |
An array of audio samples (sample_count * channels elements). |
sample_count |
The number of audio samples per channel in the PCM array. |
channels |
Number of audio channels. |
sampling_rate |
Sampling rate used in this frame. |