setMusicSpeedRate abstract method

void setMusicSpeedRate(
  1. int id,
  2. double rate
)

Changing the Speed of Background Music

This API is used to change the speed of background music.

  • Parameters:
    • id(int):
      • Music ID.
    • speedRate(double):
      • Music speed. Value range: floating point numbers in the range of 0.5, 2; default: 1.0f.

Implementation

void setMusicSpeedRate(int id, double rate);