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

Mix_GroupOldest

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

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

int Mix_GroupOldest(int tag);

Function Parameters

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

Return Value

(int) Returns the "oldest" sample playing in a group of channels.

Remarks

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.

Version

This function is available since SDL_mixer 3.0.0.

See Also


CategoryAPI, CategoryAPIFunction


[ 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.