Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
agora::rtc::AudioSinkWants Struct Reference

`#include <NGIAgoraAudioTrack.h>`

## Public Member Functions
| 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.

## 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.