setMusicSpeedRate abstract method
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.
- Music speed. Value range: floating point numbers in the range of
- id(int):
Implementation
void setMusicSpeedRate(int id, double rate);