Package io.agora.rtc2.audio
Interface IAudioSpectrumObserver
public interface IAudioSpectrumObserver
The IAudioSpectrumObserver interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanonRemoteAudioSpectrum(UserAudioSpectrumInfo[] userAudioSpectrumInfos, int spectrumNumber)
-
Method Details
-
onLocalAudioSpectrum
- Parameters:
data- The audio spectrum data of the local user. See `AudioSpectrumInfo`.- Returns:
- Whether the spectrum data is received: - `true`: Spectrum data is received. - `false`: No spectrum data is received.
-
onRemoteAudioSpectrum
- Parameters:
userAudioSpectrumInfos- The audio spectrum information of the remote user. See `UserAudioSpectrumInfo`. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.spectrumNumber- The number of remote users.- Returns:
- Whether the spectrum data is received: - `true`: Spectrum data is received. - `false`: No spectrum data is received.
-