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 <SDL3_mixer/SDL_mixer.h>

Syntax

bool Mix_PlayingMusic(void);

Return Value

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