onProcessRecordAudioFrame method

FutureOr<int> onProcessRecordAudioFrame(
  1. IAudioFrame audioFrame
)

@detail callback @author majun.lvhiei @brief Returns the address of the locally captured audio frame for custom processing. @param audioFrame The address of the audio frame. See IAudioFrame{@link #IAudioFrame}. @return - 0: Success. - <0: Failure. @note - After custom processing, SDK will encode the processed audio frames and transmit to the remote user. The processing does not affect the SDK-level ear-monitoring audio. - To enable this callback, call enableAudioProcessor{@link #RTCEngine#enableAudioProcessor}. You will receive this callback every 10 ms.

Implementation

FutureOr<int> onProcessRecordAudioFrame(IAudioFrame audioFrame) async {
  throw UnimplementedError();
}