IAudioSpectrumObserver

The audio spectrum observer.

FOnLocalAudioSpectrum

Gets the statistics of a local audio spectrum.

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnLocalAudioSpectrum, const FAudioSpectrumData&, data);

After successfully calling RegisterAudioSpectrumObserver to implement the FOnLocalAudioSpectrum callback in IAudioSpectrumObserver and calling EnableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK triggers this callback as the time interval you set to report the received remote audio data spectrum before encoding.

Parameters

data
The audio spectrum data of the local user. See FAudioSpectrumData.

Returns

Whether the spectrum data is received:
  • true: Spectrum data is received.
  • false: No spectrum data is received.

FOnRemoteAudioSpectrum

Gets the remote audio spectrum.

DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnRemoteAudioSpectrum, const TArray<FUserAudioSpectrumInfo>, spectrums, int, spectrumNumber);

After successfully calling RegisterAudioSpectrumObserver to implement the FOnRemoteAudioSpectrum callback in the IAudioSpectrumObserver and calling EnableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK will trigger the callback as the time interval you set to report the received remote audio data spectrum.

Parameters

spectrums
The audio spectrum information of the remote user, see FUserAudioSpectrumInfo. 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.