setAudioPitch
Sets the pitch of the current media resource.
int setAudioPitch(int pitch);
Note: Call this method after calling
open.Parameters
- pitch
- Sets the pitch of the local music file in semitones. The default value is 0, which means the original pitch is retained. The valid range is -12 to 12. The pitch difference between two adjacent values is one semitone. The greater the absolute value of this parameter, the higher or lower the pitch of the local music file.
Return Values
- 0: Success.
- < 0: Failure.