SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)

Mix_ExpireChannel

Change the expiration delay for a particular channel.

Syntax

int Mix_ExpireChannel(int channel, int ticks);

Function Parameters

channel

channel

ticks

ticks

Return Value

Returns 0 on success, or -1 on error.

Remarks

The sample will stop playing after the 'ticks' milliseconds have elapsed, or remove the expiration if 'ticks' is -1

Version

This function is available since SDL_mixer 2.0.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.