The same as above, but the sound is played at most 'ticks' milliseconds
int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks);
channel |
channel |
chunk |
chunk |
loops |
loops |
ticks |
ticks |
Returns which channel was used to play the sound.
This function is available since SDL_mixer 2.0.0.