setPlaybackSpeed

Sets the playback speed of the current audio file.

int setPlaybackSpeed(int speed);

Before calling this method, you need to call the open method.

Parameters

speed
Playback speed. It is recommended to set a value between 30 and 400, as follows:
  • 30: 0.3x the original speed.
  • 100: Original speed.
  • 400: 4x the original speed.

Return Values

  • 0: The method call succeeds.
  • < 0: The method call fails.