unloadEffect abstract method

Future<void> unloadEffect(
  1. int soundId
)

Releases a specified preloaded audio effect from the memory.

After loading the audio effect file into memory using preloadEffect, if you need to release the audio effect file, call this method.

  • soundId The ID of the audio effect. Each audio effect 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.

Implementation

Future<void> unloadEffect(int soundId);