Scroll to navigation

Mix_PauseGroup(3) SDL_mixer3 FUNCTIONS Mix_PauseGroup(3)

NAME

Mix_PauseGroup - Pause playing of a group of channels by arbitrary tag.

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
int Mix_PauseGroup(int tag);

DESCRIPTION

Pausing a channel will prevent further playback of the assigned chunk but will maintain the chunk's current mixing position. When resumed, this channel will continue to mix the chunk where it left off.

A paused channel can be resumed by calling Mix_Resume () or

Mix_ResumeGroup ().

A paused channel with an expiration will not expire while paused (the expiration countdown will be adjusted once resumed).

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.

FUNCTION PARAMETERS

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

RETURN VALUE

Returns zero, whether any channels were halted or not.

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SDL_mixer 3.0.0 SDL_mixer