Media Player Kit v1.3.0 API Reference for Android
io.agora.mediaplayer.data.AudioFrame Class Reference

Public Member Functions

 AudioFrame (ByteBuffer buffer, byte[] bytes, int sampleRataHz, int bytesPerSample, int channelNums, int samplesPerChannel, long timestamp)
 
String toString ()
 

Public Attributes

ByteBuffer buffer
 
byte[] bytes
 
int sampleRataHz
 
int bytesPerSample
 
int channelNums
 
int samplesPerChannel
 
long timestamp
 

Detailed Description

The AudioFrame class, reporting the detailed information of the incoming audio frame.

Member Data Documentation

◆ buffer

ByteBuffer io.agora.mediaplayer.data.AudioFrame.buffer

The buffer of the audio data

◆ bytes

byte [] io.agora.mediaplayer.data.AudioFrame.bytes

The number of bytes of the audio data

◆ sampleRataHz

int io.agora.mediaplayer.data.AudioFrame.sampleRataHz

The sample rate (Hz) of the audio data

◆ bytesPerSample

int io.agora.mediaplayer.data.AudioFrame.bytesPerSample

The number of bytes per sample

◆ channelNums

int io.agora.mediaplayer.data.AudioFrame.channelNums

The channel number

◆ samplesPerChannel

int io.agora.mediaplayer.data.AudioFrame.samplesPerChannel

The number of samples per channel

◆ timestamp

long io.agora.mediaplayer.data.AudioFrame.timestamp

The timestamp (ms) of current audio frame