setVolumeOfEffect abstract method
Sets the playback volume of the specified audio effect file.
soundIdThe ID of the specified audio effect. Each audio effect has a unique ID.volumePlayback volume. The range is0,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});