setPlaybackAudioFrameBeforeMixingParameters abstract method

Future<void> setPlaybackAudioFrameBeforeMixingParameters({
  1. required int sampleRate,
  2. required int channel,
})

Sets the audio data format reported by onPlaybackAudioFrameBeforeMixing.

  • sampleRate The sample rate (Hz) of the audio data, which can be set as 8000, 16000, 32000, 44100, or 48000.
  • channel The number of channels of the audio data, which can be set as 1 (Mono) or 2 (Stereo).

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setPlaybackAudioFrameBeforeMixingParameters(
    {required int sampleRate, required int channel});