rewind method

void rewind()

Rewind the music stream.

This causes the currently-playing music to start mixing from the beginning of the music, as if it were just started.

It's a legal no-op to rewind the music stream when not playing.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC void SDLCALL Mix_RewindMusic(void)

Implementation

void rewind() {
  mixRewindMusic();
}