Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
agora::rtc::EncodedAudioFrameInfo Struct Reference

#include <AgoraBase.h>

Public Member Functions

 EncodedAudioFrameInfo (const EncodedAudioFrameInfo &rhs)
 

Public Attributes

bool speech
 
AUDIO_CODEC_TYPE codec
 
int sampleRateHz
 
int samplesPerChannel
 
bool sendEvenIfEmpty
 
int numberOfChannels
 

Detailed Description

The definition of the EncodedAudioFrameInfo struct.

Member Data Documentation

◆ speech

bool agora::rtc::EncodedAudioFrameInfo::speech

Determines whether the audio source is speech.

  • true: (Default) The audio source is speech.
  • false: The audio source is not speech.

◆ codec

AUDIO_CODEC_TYPE agora::rtc::EncodedAudioFrameInfo::codec

The audio codec: #AUDIO_CODEC_TYPE.

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

◆ sendEvenIfEmpty

bool agora::rtc::EncodedAudioFrameInfo::sendEvenIfEmpty

Whether to send the audio frame even when it is empty.

  • true: (Default) Send the audio frame even when it is empty.
  • false: Do not send the audio frame when it is empty.

◆ numberOfChannels

int agora::rtc::EncodedAudioFrameInfo::numberOfChannels

The number of audio channels of the audio frame.