setVolumeOfEffect abstract method

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

Sets the volume of a specified audio effect. Call this method after playEffect .

Param soundId The audio effect ID. The ID of each audio effect file is unique.

Param volume The playback volume. The value ranges from 0 to 100. The default value is 100, which represents the original volume.

Implementation

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