.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL_mixer's wiki page for Mix_Playing:
.\"   https://wiki.libsdl.org/SDL_mixer/Mix_Playing
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision 3~git20250404~68764f3+ds-1
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20Mix_Playing
.\" SDL_mixer can be found at https://libsdl.org/projects/SDL_mixer
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH Mix_Playing 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS"
.SH NAME
Mix_Playing \- Check the playing status of a specific channel\[char46]
.SH HEADER FILE
Defined in SDL3_mixer/SDL_mixer\[char46]h

.SH SYNOPSIS
.nf
.B #include \(dqSDL3_mixer/SDL_mixer.h\(dq
.PP
.BI "int Mix_Playing(int channel);
.fi
.SH DESCRIPTION
If the channel is currently playing, this function returns 1\[char46] Otherwise it
returns 0\[char46]

If the specified channel is -1, all channels are checked, and this function
returns the number of channels currently playing\[char46]

You may not specify MAX_CHANNEL_POST for a channel\[char46]

Paused channels are treated as playing, even though they are not currently
making forward progress in mixing\[char46]

.SH FUNCTION PARAMETERS
.TP
.I channel
channel\[char46]
.SH RETURN VALUE
Returns non-zero if channel is playing, zero otherwise\[char46] If
.BR channel
is -1, return the total number of channel playings\[char46]

.SH AVAILABILITY
This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46]