RegisterAudioFrameObserver
Registers an audio frame observer object.
Details
Call this method to register an audio frame observer object (register a callback). When you need the SDK to trigger FOnMixedAudioFrame, FOnRecordAudioFrame, FOnPlaybackAudioFrame or FOnEarMonitoringAudioFrame callback, you need to use this method to register the callbacks.
Attention: Ensure that you call this method before joining a channel.
Parameters
- observer
-
The observer instance. See IAudioFrameObserver. Set the value as NULL to release the instance. Agora recommends calling this method after receiving FOnLeaveChannel to release the audio observer object.
Returns
- 0: Success.
- < 0: Failure.