setReverbPreset method

Future<void> setReverbPreset(
  1. ZegoReverbPreset preset
)

Setting up the reverberation via preset enumeration.

Available since: 1.17.0 Description: Call this function to set preset reverb effect. Use cases: Often used in live broadcasting, voice chatroom and KTV. When to call: It needs to be called after createEngine. Support call this function to change preset reverb effect during publishing stream. Related APIs: If you need advanced reverb effect, please use setReverbAdvancedParam. The effect of using this function together with setVoiceChangerPreset may be different from what is expected. If you need to use it at the same time, it is recommended to enable the voice changer first, and then enable the reverb. If you need advanced reverb/echo/voice changer effect, please use setReverbAdvancedParam, setReverbEchoParam, setVoiceChangerParam together.

  • preset The reverberation preset enumeration.

Implementation

Future<void> setReverbPreset(ZegoReverbPreset preset) async {
  return await ZegoExpressImpl.instance.setReverbPreset(preset);
}