AudioReceiveFrameCallback


Description:

public delegate void AudioReceiveFrameCallback (ToxAV av, uint32 friend_number, int16[] pcm, size_t sample_count, uint8 channels, uint32 sampling_rate)

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.

Parameters:

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.


Namespace: ToxAV
Package: toxcore