Scroll to navigation

Mix_GroupOldest(3) SDL_mixer3 FUNCTIONS Mix_GroupOldest(3)

NAME

Mix_GroupOldest - Find the "oldest" sample playing in a group of channels.

SYNOPSIS

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

DESCRIPTION

Specifically, this function returns the channel number that is assigned the specified tag, is currently playing, and has the lowest start time, based on the value of SDL_GetTicks() when the channel started playing.

If no channel with this tag is currently playing, this function returns -1.

FUNCTION PARAMETERS

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

RETURN VALUE

Returns the "oldest" sample playing in a group of channels

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SEE ALSO

Mix_GroupNewer(3)

SDL_mixer 3.0.0 SDL_mixer