Agora RTC Objective-C API Reference  Refactor
Data Fields
EncodedAudioFrameInfo Struct Reference

Data Fields

AUDIO_CODEC_TYPE codec
 
int sampleRateHz
 
int samplesPerChannel
 
int numberOfChannels
 
EncodedAudioFrameAdvancedSettings advancedSettings
 

Detailed Description

The definition of the EncodedAudioFrameInfo struct.

Constructor & Destructor Documentation

◆ EncodedAudioFrameInfo() [1/2]

◆ EncodedAudioFrameInfo() [2/2]

Field Documentation

◆ codec

The audio codec: AUDIO_CODEC_TYPE.

◆ sampleRateHz

int sampleRateHz

The sample rate (Hz) of the audio frame.

◆ samplesPerChannel

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

◆ numberOfChannels

int numberOfChannels

The number of audio channels of the audio frame.

◆ advancedSettings

The advanced settings of the audio frame.