Scroll to navigation

Mix_PlayingMusic(3) SDL_mixer3 FUNCTIONS Mix_PlayingMusic(3)

NAME

Mix_PlayingMusic - Check the playing status of the music stream.

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
int Mix_PlayingMusic(void);

DESCRIPTION

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.

RETURN VALUE

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

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SDL_mixer 3.0.0 SDL_mixer