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 2.0.0.

extern DECLSPEC void SDLCALL Mix_RewindMusic(void)

Implementation

void mixRewindMusic() {
  final mixRewindMusicLookupFunction = libSdl2Mixer
      .lookupFunction<Void Function(), void Function()>('Mix_RewindMusic');
  return mixRewindMusicLookupFunction();
}