stopEffect abstract method

Future<void> stopEffect(
  1. int soundId
)

Stops playback of the specified audio effect file.

If you no longer need to play a specific audio effect file, you can call this method to stop playback. If you only need to pause playback, call pauseEffect.

  • soundId The ID of the specified audio effect file. Each audio effect file has a unique ID.

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> stopEffect(int soundId);