Tao.Sdl SDK Documentation

SdlMixer.Mix_ExpireChannel Method 

Change the timed stoppage of a channel

[Visual Basic]
Public Shared Function Mix_ExpireChannel( _
   ByVal channel As Integer, _
   ByVal ticks As Integer _
) As Integer
[C#]
public static int Mix_ExpireChannel(
   int channel,
   int ticks
);

Parameters

channel
Channel to stop playing, or -1 for all channels.
ticks
Milliseconds until channel(s) halt playback.

Return Value

Number of channels set to expire. Whether or not they are active.

Remarks

Halt channel playback, or all channels if -1 is passed in, after ticks milliseconds. Any callback set by Mix_ChannelFinished will be called when the channel expires.

Binds to C-function in SDL_mixer.h

int Mix_ExpireChannel(int channel, int ticks)
            

Example

            // halt playback on all channels in 2 seconds
            Mix_ExpireChannel(-1, 2000);
            

See Also

SdlMixer Class | Tao.Sdl Namespace | Mix_HaltChannel | Mix_FadeOutChannel | Mix_ChannelFinished