table of contents
- experimental 3~git20250302~78a2035+ds-1
Mix_Playing(3) | SDL_mixer3 FUNCTIONS | Mix_Playing(3) |
NAME¶
Mix_Playing - Check the playing status of a specific channel.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
int Mix_Playing(int channel);
DESCRIPTION¶
If the channel is currently playing, this function returns 1. Otherwise it returns 0.
If the specified channel is -1, all channels are checked, and this function returns the number of channels currently playing.
You may not specify MAX_CHANNEL_POST for a channel.
Paused channels are treated as playing, even though they are not currently making forward progress in mixing.
FUNCTION PARAMETERS¶
- channel
- channel.
RETURN VALUE¶
Returns non-zero if channel is playing, zero otherwise. If channel is -1, return the total number of channel playings.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.0.0 | SDL_mixer |