unload method

FutureOr<int> unload(
  1. int effectId
)

@detail api @author zhangyuanyuan.0101 @brief 卸载指定音效文件。 @param effectId 音效 ID @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明 @note 调用本方法卸载该文件后,关于当前的混音状态,如果设置了 setEventHandler:{@link #ByteRTCAudioEffectPlayer#setEventHandler},会收到回调 onAudioEffectPlayerStateChanged

Implementation

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