Server Gateway SDK v3.7.200.21 for Linux Java
Public Member Functions | List of all members
io.agora.rtc.AudioPcmFrame Class Reference

Public Member Functions

 AudioPcmFrame ()
 
 AudioPcmFrame (int captureTimestamp, int samplesPerChannel, int sampleRateHz, int numChannels, int bytesPerSample, short data)
 
int getCaptureTimestamp ()
 
void setCaptureTimestamp (int captureTimestamp)
 
int getSamplesPerChannel ()
 
void setSamplesPerChannel (int samplesPerChannel)
 
int getSampleRateHz ()
 
void setSampleRateHz (int sampleRateHz)
 
int getNumChannels ()
 
void setNumChannels (int numChannels)
 
int getBytesPerSample ()
 
void setBytesPerSample (int bytesPerSample)
 
short getData ()
 
void setData (short data)
 

Detailed Description

The AudioPcmFrame class.

Constructor & Destructor Documentation

◆ AudioPcmFrame() [1/2]

io.agora.rtc.AudioPcmFrame.AudioPcmFrame ( )

◆ AudioPcmFrame() [2/2]

io.agora.rtc.AudioPcmFrame.AudioPcmFrame ( int  captureTimestamp,
int  samplesPerChannel,
int  sampleRateHz,
int  numChannels,
int  bytesPerSample,
short  data 
)

Constructor.

Parameters
captureTimestampThe timestamp (ms) of the audio frame.
samplesPerChannelThe number of samples per channel.
sampleRateHzThe sample rate (Hz) of the audio data.
numChannelsThe number of audio channels (data is interleaved, if stereo).
bytesPerSampleThe number of bytes per sample.
dataThe audio frame data.

Member Function Documentation

◆ getBytesPerSample()

int io.agora.rtc.AudioPcmFrame.getBytesPerSample ( )

◆ getCaptureTimestamp()

int io.agora.rtc.AudioPcmFrame.getCaptureTimestamp ( )

◆ getData()

short io.agora.rtc.AudioPcmFrame.getData ( )

◆ getNumChannels()

int io.agora.rtc.AudioPcmFrame.getNumChannels ( )

◆ getSampleRateHz()

int io.agora.rtc.AudioPcmFrame.getSampleRateHz ( )

◆ getSamplesPerChannel()

int io.agora.rtc.AudioPcmFrame.getSamplesPerChannel ( )

◆ setBytesPerSample()

void io.agora.rtc.AudioPcmFrame.setBytesPerSample ( int  bytesPerSample)

◆ setCaptureTimestamp()

void io.agora.rtc.AudioPcmFrame.setCaptureTimestamp ( int  captureTimestamp)

◆ setData()

void io.agora.rtc.AudioPcmFrame.setData ( short  data)

◆ setNumChannels()

void io.agora.rtc.AudioPcmFrame.setNumChannels ( int  numChannels)

◆ setSampleRateHz()

void io.agora.rtc.AudioPcmFrame.setSampleRateHz ( int  sampleRateHz)

◆ setSamplesPerChannel()

void io.agora.rtc.AudioPcmFrame.setSamplesPerChannel ( int  samplesPerChannel)

The documentation for this class was generated from the following file: