Agora Java API Reference for Android
|
#include <AgoraMediaBase.h>
Public Member Functions | |
virtual bool | onLocalAudioSpectrum (const AudioSpectrumData &data)=0 |
virtual bool | onRemoteAudioSpectrum (const UserAudioSpectrumInfo *spectrums, unsigned int spectrumNumber)=0 |
The IAudioSpectrumObserver class.
|
pure virtual |
Reports the audio spectrum of local audio.
This callback reports the audio spectrum data of the local audio at the moment in the channel.
You can set the time interval of this callback using enableAudioSpectrumMonitor.
data | The audio spectrum data of local audio.
|
|
pure virtual |
Reports the audio spectrum of remote user.
This callback reports the IDs and audio spectrum data of the loudest speakers at the moment in the channel.
You can set the time interval of this callback using enableAudioSpectrumMonitor.
spectrums | The pointer to UserAudioSpectrumInfo, which is an array containing the user ID and audio spectrum data for each speaker.
|
spectrumNumber | The array length of the spectrums.
|