Interface IAudioSpectrumObserver


public interface IAudioSpectrumObserver
The IAudioSpectrumObserver interface.
  • Method Details

    • onLocalAudioSpectrum

      boolean onLocalAudioSpectrum(AudioSpectrumInfo data)
      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

      boolean onRemoteAudioSpectrum(UserAudioSpectrumInfo[] userAudioSpectrumInfos, int spectrumNumber)
      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.