setAdvancedAudioOptions abstract method

Future<void> setAdvancedAudioOptions({
  1. required AdvancedAudioOptions options,
  2. int sourceType = 0,
})

Sets audio advanced options.

If you have advanced audio processing requirements, such as capturing and sending stereo audio, you can call this method to set advanced audio options. Call this method after calling joinChannel, enableAudio and enableLocalAudio.

  • options The advanced options for audio. See AdvancedAudioOptions.

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> setAdvancedAudioOptions(
    {required AdvancedAudioOptions options, int sourceType = 0});