[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
Play chunk on channel, or if channel is -1, pick the first free unreserved channel.
The sample will play for loops+1 number of times, unless stopped by halt, or fade out, or setting a new expiration time of less time than it would have originally taken to play the loops, or closing the mixer.
Note: this just calls Mix_PlayChannelTimed()
with ticks set to -1.
Returns: the channel the sample is played on. On any errors, -1 is returned.
|
See Also:
4.3.4 Mix_PlayChannelTimed,
4.3.5 Mix_FadeInChannel,
4.3.9 Mix_HaltChannel,
4.3.10 Mix_ExpireChannel,
4.4.1 Mix_ReserveChannels