enableVocalInstrumentBalance method

FutureOr<int> enableVocalInstrumentBalance(
  1. BOOL enable
)

@detail api @author majun.lvhiei @brief 开启/关闭音量均衡功能。
开启音量均衡功能后,人声的响度会调整为 -16lufs。如果已调用 setAudioMixingLoudness:loudness: 传入了混音音乐的原始响度,此音乐播放时,响度会调整为 -20lufs。 @param enable 是否开启音量均衡功能:
- YES: 是 - NO: 否 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note 该接口须在调用 startAudioMixing:filePath:config: 开始播放音频文件之前调用。

Implementation

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