setPlaybackSpeed

Sets the playback speed of the current audio file.

virtual int setPlaybackSpeed(int speed) = 0;

You need to call the open method before calling this method.

Parameters

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

Return Values

  • 0: Success.
  • < 0: Failure.