setAudioMixingPitch abstract method

Future<void> setAudioMixingPitch(
  1. int pitch
)

Adjusts the pitch of the locally played music file.

When mixing local voice with a music file, call this method to adjust only the pitch of the music file.

  • pitch Adjusts the pitch of the locally played music file in semitone steps. The default value is 0, which means no pitch adjustment. The valid range is -12, 12. Each step represents a semitone difference. The greater the absolute value, the more the pitch is raised or lowered.

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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setAudioMixingPitch(int pitch);