Server Gateway SDK v3.8.202.20 for Linux C++
Public Member Functions | Public Attributes | List of all members
agora::rtc::EncodedAudioFrameInfo Struct Reference

#include <AgoraBase.h>

Public Member Functions

 EncodedAudioFrameInfo ()
 EncodedAudioFrameInfo (const EncodedAudioFrameInfo &rhs)

Public Attributes

int sampleRateHz
int samplesPerChannel
int numberOfChannels
EncodedAudioFrameAdvancedSettings advancedSettings

Detailed Description

The definition of the EncodedAudioFrameInfo struct.

Constructor & Destructor Documentation

◆ EncodedAudioFrameInfo() [1/2]

agora::rtc::EncodedAudioFrameInfo::EncodedAudioFrameInfo ( )

◆ EncodedAudioFrameInfo() [2/2]

agora::rtc::EncodedAudioFrameInfo::EncodedAudioFrameInfo ( const EncodedAudioFrameInfo rhs)

Member Data Documentation

◆ advancedSettings

EncodedAudioFrameAdvancedSettings agora::rtc::EncodedAudioFrameInfo::advancedSettings

The advanced settings of the audio frame.

◆ codec

AUDIO_CODEC_TYPE agora::rtc::EncodedAudioFrameInfo::codec

The audio codec: AUDIO_CODEC_TYPE.

◆ numberOfChannels

int agora::rtc::EncodedAudioFrameInfo::numberOfChannels

The number of audio channels of the audio frame.

◆ sampleRateHz

int agora::rtc::EncodedAudioFrameInfo::sampleRateHz

The sample rate (Hz) of the audio frame.

◆ samplesPerChannel

int agora::rtc::EncodedAudioFrameInfo::samplesPerChannel

The number of samples per audio channel.

If this value is not set, it is 1024 for AAC, or 960 for Opus by default.

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