Agora C++ API Reference for All Platforms

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

`#include <AgoraMediaBase.h>`

## Public Member Functions
| AudioSpectrumData ()
| AudioSpectrumData (const float *data, int length)

## Public Attributes
const float * | audioSpectrumData
int | dataLength

## Constructor & Destructor Documentation

## ◆ AudioSpectrumData() [1/2]

agora::media::AudioSpectrumData::AudioSpectrumData | ( |  | ) |
| inline

## ◆ AudioSpectrumData() [2/2]

agora::media::AudioSpectrumData::AudioSpectrumData | ( | const float * | data,
|  | int | length )
| inline

## Member Data Documentation

## ◆ audioSpectrumData

const float* agora::media::AudioSpectrumData::audioSpectrumData

The audio spectrum data. Agora divides the audio frequency into 256 frequency domains, and reports the energy value of each frequency domain through this parameter. The value range of each energy type is [-300, 1] and the unit is dBFS.

## ◆ dataLength

int agora::media::AudioSpectrumData::dataLength

The audio spectrum data length is 256.