setHeadphoneEQPreset abstract method

Future<void> setHeadphoneEQPreset(
  1. HeadphoneEqualizerPreset preset
)

Sets the preset headphone equalization effect.

This method is mainly used in spatial audio effect scenarios. You can select the preset headphone equalizer to listen to the audio to achieve the expected audio experience. If the headphones you use already have a good equalization effect, you may not get a significant improvement when you call this method, and could even diminish the experience.

  • preset The preset headphone equalization effect. See HeadphoneEqualizerPreset.

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> setHeadphoneEQPreset(HeadphoneEqualizerPreset preset);