setAudioEqualizerGain method
Set the sound equalizer (EQ).
Available since: 1.12.0 Description: Call this function to set the sound equalizer adjust the tone. Use cases: Often used in voice chatroom, KTV. When to call: It needs to be called after createEngine. Restrictions: None.
bandIndexBand frequency index, the value range is0, 9, corresponding to 10 frequency bands, and the center frequencies are31, 62, 125, 250, 500, 1K, 2K, 4K, 8K, 16KHz.bandGainBand gain for the index, the value range is-15, 15. Default value is 0, if all gain values in all frequency bands are 0, EQ function will be disabled.
Implementation
Future<void> setAudioEqualizerGain(int bandIndex, double bandGain) async {
return await ZegoExpressImpl.instance
.setAudioEqualizerGain(bandIndex, bandGain);
}