Tao.Sdl SDK Documentation |
|
SdlMixer.Mix_GroupChannel Method
Add/remove channel to/from group
[Visual Basic]
Public Shared Function Mix_GroupChannel( _
ByVal
which As
Integer, _
ByVal
tag As
Integer _
) As
Integer
[C#]
public static
int Mix_GroupChannel(
int which,
int tag);
Parameters
-
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.
Return Value
True(1) on success. False(0) is returned when the channel specified is invalid.
Remarks
Add which channel to group tag, or reset it's group to the default group tag (-1).
Binds to C-function in SDL_mixer.h
int Mix_GroupChannel(int which, int tag)
Example
// add channel 0 to group 1
if(!Mix_GroupChannel(0,1))
{
// bad channel, apparently channel 1 isn't allocated
}
See Also
SdlMixer Class | Tao.Sdl Namespace | Mix_GroupChannels | Mix_AllocateChannels