Agora Java API Reference for Android
|
Public Member Functions | |
boolean | onLocalAudioSpectrum (AudioSpectrumInfo data) |
boolean | onRemoteAudioSpectrum (UserAudioSpectrumInfo[] userAudioSpectrumInfos, int spectrumNumber) |
The IAudioSpectrumObserver interface.
boolean io.agora.rtc2.audio.IAudioSpectrumObserver.onLocalAudioSpectrum | ( | AudioSpectrumInfo | data | ) |
Reports the audio spectrum of audio recording.
This callback reports the audio spectrum data of the audio recording at the moment in the channel.
You can set the time interval of this callback using {}. data The audio spectrum data of audio recording.true: Processed.false: Not processed.
boolean io.agora.rtc2.audio.IAudioSpectrumObserver.onRemoteAudioSpectrum | ( | UserAudioSpectrumInfo[] | userAudioSpectrumInfos, |
int | spectrumNumber | ||
) |
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.