Package io.agora.rtc2
Interface IAudioEncodedFrameObserver
public interface IAudioEncodedFrameObserver
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMixedAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the mixed playback audio frame is received.voidonPlaybackAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the playback audio frame is received.voidonRecordAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the recorded audio frame is received.
-
Method Details
-
onRecordAudioEncodedFrame
void onRecordAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the recorded audio frame is received.- Parameters:
buffer- The audio frame payload.samplesPerChannel- The samples per channel.channels- The number of audio channels. If the channel uses stereo, the data is interleaved. - 1: Mono. - 2: Stereo.samplesPerSec- The number of samples per channel per second in the audio frame.codecType- The codec type.
-
onPlaybackAudioEncodedFrame
void onPlaybackAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the playback audio frame is received.- Parameters:
buffer- The audio frame payload.samplesPerChannel- The samples per channel.channels- The number of audio channels. If the channel uses stereo, the data is interleaved. - 1: Mono. - 2: Stereo.samplesPerSec- The number of samples per channel per second in the audio frame.codecType- The codec type.
-
onMixedAudioEncodedFrame
void onMixedAudioEncodedFrame(ByteBuffer buffer, int samplesPerChannel, int channels, int samplesPerSec, int codecType) Occurs when the mixed playback audio frame is received.- Parameters:
buffer- The audio frame payload.samplesPerChannel- The samples per channel.channels- The number of audio channels. If the channel uses stereo, the data is interleaved. - 1: Mono. - 2: Stereo.samplesPerSec- The number of samples per channel per second in the audio frame.codecType- The codec type.
-