Function Chunk.play
Wraps Mix_PlayChannelTimed
which plays the chunk on the first available free channel
Parameters
Name | Description |
---|---|
loops | how many times the chunk should be played (cast(uint) -1 for infinite) |
ms | number of milliseconds the chunk should be played for |
Returns
Channel
the chunk is played on; null
if no free channel