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

Mix_PlayingMusic

Check the playing status of the music stream.

Header File

Defined in <SDL_mixer.h>

Syntax

int Mix_PlayingMusic(void);

Return Value

(int) Returns non-zero if music is playing, zero otherwise.

Remarks

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.

Version

This function is available since SDL_mixer 2.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.