setVolumeOfEffect abstract method

Future<void> setVolumeOfEffect({
  1. required int soundId,
  2. required int volume,
})

Sets the volume of a specified audio effect.

  • soundId The ID of the audio effect. The ID of each audio effect file is unique.
  • volume The playback volume. The value range is 0, 100. The default value is 100, which represents the original volume.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setVolumeOfEffect({required int soundId, required int volume});