onMixedAudioFrame property

(void Function(String channelId, AudioFrame audioFrame)?) onMixedAudioFrame
final

Retrieves the mixed captured and playback audio frame.

To ensure that the data format of mixed captured and playback audio frame meets the expectations, Agora recommends that you set the data format as follows: After calling setMixedAudioFrameParameters to set the audio data format and registerAudioFrameObserver to register the audio frame observer object, the SDK calculates the sampling interval according to the parameters set in the methods, and triggers the onMixedAudioFrame callback according to the sampling interval. Due to framework limitations, this callback does not support sending processed audio data back to the SDK.

  • audioFrame The raw audio data. See AudioFrame.
  • channelId The channel ID.

Implementation

final void Function(String channelId, AudioFrame audioFrame)?
    onMixedAudioFrame;