mixPlayingMusic function

bool 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 true if music is playing, false otherwise.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC bool SDLCALL Mix_PlayingMusic(void)

Implementation

bool mixPlayingMusic() {
  final mixPlayingMusicLookupFunction = libSdl3Mixer
      .lookupFunction<Uint8 Function(), int Function()>('Mix_PlayingMusic');
  return mixPlayingMusicLookupFunction() == 1;
}