table of contents
- experimental 3~git20250302~78a2035+ds-1
Mix_GroupOldest(3) | SDL_mixer3 FUNCTIONS | Mix_GroupOldest(3) |
NAME¶
Mix_GroupOldest - Find the "oldest" sample playing in a group of channels.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
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¶
- tag
- 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¶
•(3), Mix_GroupNewer(3)
SDL_mixer 3.0.0 | SDL_mixer |