setMixedAudioFrameParameters abstract method
Sets the audio data format reported by onMixedAudioFrame.
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).samplesPerCall
Sets the number of samples. In Media Push scenarios, set it as 1024.
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> setMixedAudioFrameParameters(
{required int sampleRate,
required int channel,
required int samplesPerCall});