setVolumeOfEffect abstract method

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

Sets the playback volume of the specified audio effect file.

  • soundId The ID of the specified audio effect. Each audio effect has a unique ID.
  • volume Playback volume. The range is 0,100. The default value is 100, representing 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. See Error Codes for details and resolution suggestions.

Implementation

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