mixGroupOldest function

int mixGroupOldest(
  1. int tag
)

Find the "oldest" 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 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.

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

\since This function is available since SDL_mixer 2.0.0.

\sa Mix_GroupNewer

extern DECLSPEC int SDLCALL Mix_GroupOldest(int tag)

Implementation

int mixGroupOldest(int tag) {
  final mixGroupOldestLookupFunction = libSdl2Mixer.lookupFunction<
      Int32 Function(Int32 tag), int Function(int tag)>('Mix_GroupOldest');
  return mixGroupOldestLookupFunction(tag);
}