public final class ZegoAudioFrame
extends java.lang.Object
IZegoExternalAudioDataCallback.onAudioData(java.lang.String, com.zego.zegoliveroom.entity.ZegoAudioFrame) callback.
Requires enableExternalAudioData to be enabled.| Modifier and Type | Field and Description |
|---|---|
java.nio.ByteBuffer |
buffer
Audio data.
|
int |
bufLen
Data length, in bytes.
|
int |
bytesPerSample
Bytes per sample across all channels, equal to 2 * channels.
|
int |
channels
Number of audio channels: 1 or 2.
|
int |
configLen
Length of the AAC codec configuration data; always 0 for PCM.
|
int |
frameType
Frame type.
|
int |
sampleRate
PCM: sample rate.
|
int |
samples
PCM: samples per channel.
|
double |
timestamp
Timestamp.
|
| Constructor and Description |
|---|
ZegoAudioFrame() |
public int frameType
public int samples
public int bytesPerSample
public int channels
public int sampleRate
public double timestamp
public int configLen
public int bufLen
public java.nio.ByteBuffer buffer