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

4.3.10 Mix_ExpireChannel

int Mix_ExpireChannel(int channel, int ticks)

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

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.

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

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

See Also:
4.3.9 Mix_HaltChannel, 4.3.11 Mix_FadeOutChannel, 4.3.12 Mix_ChannelFinished



This document was generated on November, 13 2009 using texi2html