mixGroupNewer function

int mixGroupNewer(
  1. int tag
)

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

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.

\param tag an arbitrary value, assigned to channels, to search through. \returns the "most recent" sample playing in a group of channels.

\since This function is available since SDL_mixer 3.0.0.

\sa Mix_GroupOldest

extern SDL_DECLSPEC int SDLCALL Mix_GroupNewer(int tag)

Implementation

int mixGroupNewer(int tag) {
  final mixGroupNewerLookupFunction = libSdl3Mixer.lookupFunction<
      Int32 Function(Int32 tag), int Function(int tag)>('Mix_GroupNewer');
  return mixGroupNewerLookupFunction(tag);
}