setVolumeAll abstract method
Sets the volume of all audio effect, including audio effect files and PCM effects.
volume
: The ratio of the volume to the original volume in % with overflow protection. The range is [0, 400]
and the recommended range is [0, 100]
. 100 by default.
Return value:
0
: Success.<0
: Failure.
Notes: This API has a lower priority than RTCAudioEffectPlayer.setVolume, i.e. the volume of the audio effect set by RTCAudioEffectPlayer.setVolume is not affected by this API.
Implementation
Future<int?> setVolumeAll(int volume);