setMusicScratchSpeedRate abstract method
Adjust the Speed Change Effect of the Scratch Disc
This API is used to adjust the speed change effect of the scratch disc.
- Parameters:
- id(int):
- Music ID.
- scratchSpeedRate(double):
- Scratch disc speed. The default value is 1.0f.
- The range is a floating point number between
-12.0 ~ 12.0
. - A positive/negative speed value indicates the direction (positive/negative),
- and the absolute value indicates the speed.
- id(int):
Note: Precondition:
preloadMusic
must succeed before calling this API.
Implementation
void setMusicScratchSpeedRate(int id, double scratchSpeedRate);