[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.4.2 Mix_GroupChannel

int Mix_GroupChannel(int which, int tag)

which
Channel number of channels to assign tag to.
tag
A group number Any positive numbers (including zero).
-1 is the default group. Use -1 to remove a group tag essentially.

Add which channel to group tag, or reset it's group to the default group tag (-1).

Returns: True(1) on success. False(0) is returned when the channel specified is invalid.

 
// add channel 0 to group 1
if(!Mix_GroupChannel(0,1)) {
    // bad channel, apparently channel 1 isn't allocated
}

See Also:
4.4.3 Mix_GroupChannels, 4.3.1 Mix_AllocateChannels



This document was generated on November, 13 2009 using texi2html