mixFadingMusic function

int mixFadingMusic()

Query the fading status of the music stream.

This reports one of three values:

  • MIX_NO_FADING
  • MIX_FADING_OUT
  • MIX_FADING_IN

If music is not currently playing, this returns MIX_NO_FADING.

\returns the current fading status of the music stream.

\since This function is available since SDL_mixer 2.0.0.

extern DECLSPEC Mix_Fading SDLCALL Mix_FadingMusic(void)

Implementation

int mixFadingMusic() {
  final mixFadingMusicLookupFunction = libSdl2Mixer
      .lookupFunction<Int32 Function(), int Function()>('Mix_FadingMusic');
  return mixFadingMusicLookupFunction();
}