public interface IAudioSpectrumObserver
Modifier and Type | Method and Description |
---|---|
boolean |
onLocalAudioSpectrum(AudioSpectrumInfo data)
Reports the audio spectrum of audio recording.
|
boolean |
onRemoteAudioSpectrum(UserAudioSpectrumInfo[] userAudioSpectrumInfos,
int spectrumNumber)
Reports the audio spectrum of remote user.
|
boolean onLocalAudioSpectrum(AudioSpectrumInfo data)
RtcEngine.enableAudioSpectrumMonitor(int)
.data
- The audio spectrum data of audio recording.
- true: Processed.
- false: Not processed.boolean onRemoteAudioSpectrum(UserAudioSpectrumInfo[] userAudioSpectrumInfos, int spectrumNumber)
RtcEngine.enableAudioSpectrumMonitor(int)
..userAudioSpectrumInfos
- The pointer to \ref agora::media::AudioSpectrumInfo
"AudioSpectrumInfo",
which is an array containing
the user ID and audio spectrum data for each speaker.
- This array contains the following members:
- `uid`, which is the UID of each remote speaker
- `audioSpectrumData`, which reports the audio spectrum of each remote speaker.
- `spectrumDataLength`, the length of audio spectrum data.spectrumNumber
- The array length of the audioSpectrumInfoList.
- true: Processed.
- false: Not processed.