Change the playback speed of an audio stream.
int SDL_SetAudioStreamSpeed(SDL_AudioStream *stream,
float speed);
stream | The stream the speed is being changed |
speed | The new speed. 1.0 is normal speed, 1.2 is 20% faster, etc. Must be between 0.01 and 100. |
Returns 0 on success, or -1 on error.
It is safe to call this function from any thread, as it holds a stream-specific mutex while running.
This function is available since SDL 3.0.0.