Tao.Sdl SDK Documentation

SdlMixer.Mix_GroupOldest Method 

Get oldest busy channel in group

[Visual Basic]
Public Shared Function Mix_GroupOldest( _
   ByVal tag As Integer _
) As Integer
[C#]
public static int Mix_GroupOldest(
   int tag
);

Parameters

tag
A group number Any positive numbers (including zero). -1 will search ALL channels.

Return Value

The channel found on success. -1 is returned when no channels in the group are playing or the group is empty.

Remarks

Find the oldest actively playing channel in group tag.

Binds to C-function in SDL_mixer.h

int Mix_GroupOldest(int tag)
            

Example

            // find the oldest playing channel in group 1
                    int channel;
                    channel=Mix_GroupOldest(1);
                    if (channel==-1)
                {
                    // no channel playing or allocated...
                    // perhaps just search for an available channel...
                }
            

See Also

SdlMixer Class | Tao.Sdl Namespace | Mix_GroupNewer | Mix_GroupAvailable | Mix_GroupChannel | Mix_GroupChannels