SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)


Check the playing status of the music stream.

Header File

Defined in SDL_mixer.h


int Mix_PlayingMusic(void);

Return Value

Returns non-zero if music is playing, zero otherwise.


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.


This function is available since SDL_mixer 3.0.0.

CategoryAPI, CategoryAPIFunction

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.