Agora Server Gateway SDK Java API Reference
Loading...
Searching...
No Matches
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)
 

Private Attributes

int samplesPerSec
 
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)

Member Data Documentation

◆ channels

int io.agora.rtc.AudioSinkWants.channels
private

◆ samplesPerSec

int io.agora.rtc.AudioSinkWants.samplesPerSec
private

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