/FileExtraction/Java_unseen/InsightIM_Tok-Android/app/src/main/java/im/tox/tox4j/av/callbacks/AudioReceiveFrameCallback.java
package im.tox.tox4j.av.callbacks;

import im.tox.tox4j.av.data.AudioChannels;
import im.tox.tox4j.av.data.SamplingRate;
import im.tox.tox4j.core.data.ToxFriendNumber;

/**
 * Called when an audio frame is received.
 */
public interface AudioReceiveFrameCallback {
    /**
     * @param friendNumber The friend number of the friend who sent an audio frame.
     * @param pcm An array of audio samples (sample_count * channels elements).
     * @param channels Number of audio channels.
     * @param samplingRate Sampling rate used in this frame.
     */
    void audioReceiveFrame(ToxFriendNumber friendNumber, short[] pcm, AudioChannels channels,
        SamplingRate samplingRate);
}
