setLocalVoiceReverbParam method
@detail api @author wangjunzheng @brief Set the reverb effect for the local captured audio. The audio includes both internal captured audio and external captured voice, but not the mixing audio file. @param config See VoiceReverbConfig{@link #VoiceReverbConfig}. @return - 0: Success. - < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details. @note Call enableLocalVoiceReverb{@link #RTCEngine#enableLocalVoiceReverb} to enable the reverb effect.
Implementation
Future<int?> setLocalVoiceReverbParam(VoiceReverbConfig config) async {
$a() => ($instance as $p_a.RTCEngine)
.setLocalVoiceReverbParam(unpackObject<$p_a.VoiceReverbConfig>(config));
$i() => ($instance as $p_i.ByteRTCEngine).setLocalVoiceReverbParam(
unpackObject<$p_i.ByteRTCVoiceReverbConfig>(config));
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}