setPlaybackSpeed abstract method

Future<int?> setPlaybackSpeed(
  1. int speed
)

Sets the playback speed of the audio file.

speed: The ratio of the actual playback speed than that of the original speed of the audio file in %. The range is [50,200]. The default value is 100.

Return value:

  • 0: Success.
  • <0: Failure.

Notes: Call this API only when audio is mixing.

Implementation

Future<int?> setPlaybackSpeed(int speed);