table of contents
- experimental 3~git20250302~78a2035+ds-1
Mix_GroupChannel(3) | SDL_mixer3 FUNCTIONS | Mix_GroupChannel(3) |
NAME¶
Mix_GroupChannel - Assign a tag to a channel.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
bool Mix_GroupChannel(int which, int tag);
DESCRIPTION¶
A tag is an arbitrary number that can be assigned to several mixer channels, to form groups of channels.
If 'tag' is -1, the tag is removed (actually -1 is the tag used to represent the group of all the channels).
This function replaces the requested channel's current tag; you may only have one tag per channel.
You may not specify MAX_CHANNEL_POST for a channel.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns true on success or false on failure; call SDL_GetError() for more information.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.0.0 | SDL_mixer |