enableVocalInstrumentBalance method
@detail api
@author majun.lvhiei
@brief Enables/disables the loudness equalization function.
If you call this API with the parameter set to True, the loudness of user's voice will be adjusted to -16lufs. If then you also call setAudioMixingLoudness:loudness: and import the original loudness of the audio data used in audio mixing, the loudness will be adjusted to -20lufs when the audio data starts to play.
@param enable Whether to enable loudness equalization function:
- true: Yes
- false: No
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details
@note You must call this API before starting to play the audio file with startAudioMixing:filePath:config:.
Implementation
FutureOr<int> enableVocalInstrumentBalance(BOOL enable) async {
return await nativeCall('enableVocalInstrumentBalance:', [enable]);
}