Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
agora::rtc::AudioSinkWants Struct Reference

`#include <NGIAgoraAudioTrack.h>`

## Public Member Functions
| AudioSinkWants ()
| AudioSinkWants (int sampleRate, size_t chs)
| AudioSinkWants (int sampleRate, size_t chs, int trackNum)

## Public Attributes
int | samplesPerSec
size_t | 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/3]

agora::rtc::AudioSinkWants::AudioSinkWants | ( |  | ) |
| inline

## ◆ AudioSinkWants() [2/3]

agora::rtc::AudioSinkWants::AudioSinkWants | ( | int | sampleRate,
|  | size_t | chs )
| inline

## ◆ AudioSinkWants() [3/3]

agora::rtc::AudioSinkWants::AudioSinkWants | ( | int | sampleRate,
|  | size_t | chs,
|  | int | trackNum )
| inline

## Member Data Documentation

## ◆ samplesPerSec

int agora::rtc::AudioSinkWants::samplesPerSec

The sample rate of the audio frame to be sent to the sink.

## ◆ channels

size_t agora::rtc::AudioSinkWants::channels

The number of audio channels of the audio frame to be sent to the sink.