setMusicPitch abstract method

void setMusicPitch(
  1. int id,
  2. double pitch
)

Adjusting the Pitch of Background Music

This API is used to adjust the pitch of background music.

  • Parameters:
    • id(int):
      • Music ID.
    • pitch(int):
      • Pitch. Value range: floating point numbers in the range of -1, 1; default: 0.0f.

Implementation

void setMusicPitch(int id, double pitch);