Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
agora::media::AudioSpectrumData Struct Reference

The audio spectrum data. More...

`#include <AgoraMediaBase.h>`

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

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

## Detailed Description

The audio spectrum data.

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