setCaptureVolume abstract method
Adjusts the audio capture volume.
volume
: Ratio(%) of capture volume to original volume with a range of [0, 400]
.
This changes the volume property of the audio data other than the hardware volume.
For better call quality, it is recommended to set the volume value to [0,100]
.
- 0: Mute.
- 100: Original volume.
- 400: Four times the original volume with signal-clipping protection.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- You can call this method to adjust both the audio stream captured by the microphone, and the audio stream from the screen sharing.
- You can call this method both before and after starting audio capturing.
Implementation
Future<int?> setCaptureVolume({
StreamIndex index = StreamIndex.main,
required int volume,
});