SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)

Mix_HaltGroup

Halt playing of a group of channels by arbitrary tag.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

void Mix_HaltGroup(int tag);

Function Parameters

int tag an arbitrary value, assigned to channels, to search for.

Remarks

This will stop further playback on all channels with a specific tag, until a new chunk is started there.

A tag is an arbitrary number that can be assigned to several mixer channels, to form groups of channels.

The default tag for a channel is -1.

Any halted channels will have any currently-registered effects deregistered, and will call any callback specified by Mix_ChannelFinished() before this function returns.

Version

This function is available since SDL_mixer 3.0.0.


CategoryAPI, CategoryAPIFunction, CategorySDLMixer


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.