setLoudness abstract method
To call RTCVideo.enableVocalInstrumentBalance to adjust the volume of the mixed media file or the PCM audio data, you must pass in its original loudness through this API.
loudness
: Original loudness in lufs. The range is [-70.0, 0.0]
.
When the value is less than -70.0lufs, it will be adjusted to -70.0lufs by default, and if it is more than 0.0lufs, the loudness will not be equalized. The default value is 1.0lufs, which means no processing.
Return value:
0
: Success.<0
: Failure.
Notes: Call this API only when audio is mixing.
Implementation
Future<int?> setLoudness(double loudness);