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

Public Member Functions

 AudioSinkWants ()
 
 AudioSinkWants (int samplesPerSec, int channels)
 
int getSamplesPerSec ()
 
void setSamplesPerSec (int samplesPerSec)
 
int getChannels ()
 
void setChannels (int channels)
 

Detailed Description

Properties of audio frames expected by a sink.

Note
The source determines the audio frame to be sent to the sink based on a variety of factors, such as other sinks or the capability of the source.

Constructor & Destructor Documentation

◆ AudioSinkWants() [1/2]

io.agora.rtc.AudioSinkWants.AudioSinkWants ( )

◆ AudioSinkWants() [2/2]

io.agora.rtc.AudioSinkWants.AudioSinkWants ( int  samplesPerSec,
int  channels 
)

Constructor.

Parameters
samplesPerSecThe sample rate of the audio frame to be sent to the sink.
channelsThe number of audio channels of the audio frame to be sent to the sink.

Member Function Documentation

◆ getChannels()

int io.agora.rtc.AudioSinkWants.getChannels ( )

◆ getSamplesPerSec()

int io.agora.rtc.AudioSinkWants.getSamplesPerSec ( )

◆ setChannels()

void io.agora.rtc.AudioSinkWants.setChannels ( int  channels)

◆ setSamplesPerSec()

void io.agora.rtc.AudioSinkWants.setSamplesPerSec ( int  samplesPerSec)

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