mixPlayingMusic function

int mixPlayingMusic()

Check the playing status of the music stream.

If music is currently playing, this function returns 1. Otherwise it returns 0.

Paused music is treated as playing, even though it is not currently making forward progress in mixing.

\returns non-zero if music is playing, zero otherwise.

\since This function is available since SDL_mixer 2.0.0.

extern DECLSPEC int SDLCALL Mix_PlayingMusic(void)

Implementation

int mixPlayingMusic() {
  final mixPlayingMusicLookupFunction = libSdl2Mixer
      .lookupFunction<Int32 Function(), int Function()>('Mix_PlayingMusic');
  return mixPlayingMusicLookupFunction();
}