mixRewindMusic function

void mixRewindMusic()

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 mixRewindMusic() {
  final mixRewindMusicLookupFunction = libSdl3Mixer
      .lookupFunction<Void Function(), void Function()>('Mix_RewindMusic');
  return mixRewindMusicLookupFunction();
}