unload method

FutureOr<int> unload(
  1. int effectId
)

@detail api @author zhangyuanyuan.0101 @brief Unloads the specified audio effect file. @param effectId Audio effect ID. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note After calling this method, regarding the current mixing state, if setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler} is set, you will receive the onAudioEffectPlayerStateChanged callback.

Implementation

FutureOr<int> unload(int effectId) async {
  return await nativeCall('unload:', [effectId]);
}