setAudioPitch abstract method

Future<int?> setAudioPitch(
  1. int pitch
)

Sets the pitch of the local audio file mixing. Usually used in karaoke scenes.

pitch: The increase or decrease value compared with the original pitch of the music file. The range is [-12, 12]. The default value is 0. The pitch distance between two adjacent values is half a step. A positive value indicates a rising pitch, and a negative value indicates a falling pitch.

Return value:

  • 0: Success.
  • <0: Failure.

Notes: Call this API only when audio is mixing.

Implementation

Future<int?> setAudioPitch(int pitch);