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

Mix_GroupNewer

Find the "most recent" sample playing in a group of channels.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

int Mix_GroupNewer(int tag);

Function Parameters

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

Return Value

(int) Returns the "most recent" 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 highest 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.