SDL_Function

Name

Mix_ExpireChannel -- Stops a channel after a certain amount of time

Synopsis

#include "SDL_mixer.h"

int Mix_ExpireChannel(int channel, int ticks);

Description

Mix_ExpireChannel will stop the channel specified in channel after the time (in milliseconds) specified in ticks. Passing -1 in channels will cause all channels to expire.

Return Value

Returns the number of channels stopped.

Example

Mix_ExpireChannel(-1, 1000);

See Also

Mix_HaltChannel, Mix_FadeOutChannel

Mix_ExpireChannel (last edited 2008-04-17 08:18:35 by localhost)