setHeadphoneEQParameters abstract method

Future<void> setHeadphoneEQParameters({
  1. required int lowGain,
  2. required int highGain,
})

Sets the low- and high-frequency parameters of the headphone equalizer.

In a spatial audio effect scenario, if the preset headphone equalization effect is not achieved after calling the setHeadphoneEQPreset method, you can further adjust the headphone equalization effect by calling this method.

  • lowGain The low-frequency parameters of the headphone equalizer. The value range is -10,10. The larger the value, the deeper the sound.
  • highGain The high-frequency parameters of the headphone equalizer. The value range is -10,10. The larger the value, the sharper the sound.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setHeadphoneEQParameters(
    {required int lowGain, required int highGain});