mixGroupAvailable function
Finds the first available channel in a group of channels.
A tag is an arbitrary number that can be assigned to several mixer channels, to form groups of channels.
This function searches all channels with a specified tag, and returns the channel number of the first one it finds that is currently unused.
If no channels with the specified tag are unused, this function returns -1.
\param tag an arbitrary value, assigned to channels, to search for. \returns first available channel, or -1 if none are available.
\since This function is available since SDL_mixer 3.0.0.
extern SDL_DECLSPEC int SDLCALL Mix_GroupAvailable(int tag)
Implementation
int mixGroupAvailable(int tag) {
final mixGroupAvailableLookupFunction = libSdl3Mixer.lookupFunction<
Int32 Function(Int32 tag), int Function(int tag)>('Mix_GroupAvailable');
return mixGroupAvailableLookupFunction(tag);
}