unload method
@detail api @brief Unloads the specified audio effect file. @param effectId Audio effect ID @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note Call this API after start{@link #IAudioEffectPlayer#start} or preload{@link #IAudioEffectPlayer#preload}.
Implementation
Future<int?> unload(int effectId) async {
$a() => ($instance as $p_a.IAudioEffectPlayer).unload(effectId);
$i() => ($instance as $p_i.ByteRTCAudioEffectPlayer).unload(effectId);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}