setAudioMixingPlaybackSpeed
Sets the playback speed of the current audio file.
virtual int setAudioMixingPlaybackSpeed(int speed) = 0;
Details
Ensure you call this method after calling startAudioMixing [2/2] receiving the onAudioMixingStateChanged callback reporting the state as AUDIO_MIXING_STATE_PLAYING.
Parameters
- speed
- The playback speed. Agora recommends that you set this to a value between 50 and 400, defined as follows:
- 50: Half the original speed.
- 100: The original speed.
- 400: 4 times the original speed.
Returns
- 0: Success.
- < 0: Failure.