Channel.play

Wraps Mix_PlayChannelTimed which plays a dsdl2.mixer.Chunk in the channel

class Channel
const @trusted
void
play
(
const Chunk chunk
,
uint loops = 1
,
uint ms = cast(uint)-1
)

Parameters

chunk Chunk

dsdl2.mixer.Chunk to be played

loops uint

how many times the chunk should be played (cast(uint) -1 for infinity)

ms uint

number of milliseconds the chunk should be played for

Throws

dsdl2.SDLException if failed to play the chunk

Meta