public interface IAudioEncodedFrameObserver
| Modifier and Type | Method and Description |
|---|---|
void |
onMixedAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
Occurs when the mixed playback audio frame is received.
|
void |
onPlaybackAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
Occurs when the playback audio frame is received.
|
void |
onRecordAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
Occurs when the recorded audio frame is received.
|
void onRecordAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
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.void onPlaybackAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
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.void onMixedAudioEncodedFrame(java.nio.ByteBuffer buffer,
int samplesPerChannel,
int channels,
int samplesPerSec,
int codecType)
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.