Scroll to navigation

MIX_Group(3type) SDL_mixer3 DATATYPES MIX_Group(3type)

NAME

MIX_Group - An opaque object that represents a grouping of tracks.

SYNOPSIS

#include <SDL3_mixer/SDL_mixer.h>
typedef struct MIX_Group MIX_Group;

DESCRIPTION

SDL_mixer offers callbacks at various stages of the mixing pipeline to allow apps to view and manipulate data as it is transformed. Sometimes it is useful to hook in at a point where several tracks--but not all tracks-- have been mixed. For example, when a game is in some options menu, perhaps adjusting game audio but not UI sounds could be useful.

SDL_mixer allows you to assign several tracks to a group, and receive a callback when that group has finished mixing, with a buffer of just that group's mixed audio, before it mixes into the final output.

AVAILABILITY

This datatype is available since SDL_mixer 3.0.0.

SDL_mixer 3.1.3 SDL_mixer