mixPlaying function
Check the playing status of a specific channel.
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.
\param channel channel.
\returns non-zero if channel is playing, zero otherwise. If channel
is
-1, return the total number of channel playings.
\since This function is available since SDL_mixer 3.0.0.
extern SDL_DECLSPEC int SDLCALL Mix_Playing(int channel)
Implementation
int mixPlaying(int channel) {
final mixPlayingLookupFunction = libSdl3Mixer.lookupFunction<
Int32 Function(Int32 channel), int Function(int channel)>('Mix_Playing');
return mixPlayingLookupFunction(channel);
}