enableExternalSoundCard method

FutureOr<int> enableExternalSoundCard(
  1. bool enable
)

@detail api @author zhangyuanyuan.0101 @brief Enables the audio process mode for external sound card. @param enable
- true: enable - false: disable (by default) @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - When you use external sound card for audio capture, enable this mode for better audio quality. - When using the mode, you can only use earphones. If you need to use internal or external speaker, disable this mode.

Implementation

FutureOr<int> enableExternalSoundCard(bool enable) async {
  return await nativeCall('enableExternalSoundCard:', [enable]);
}