Channel.fadeIn

Wraps Mix_FadeInChannelTimed which plays a dsdl2.mixer.Chunk in the channel with a fade-in effect

class Channel
const @trusted
void
fadeIn
(
const Chunk chunk
,
uint loops = 1
,
uint fadeMs = 0
,
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)

fadeMs uint

number of milliseconds the chunk fades in before fully playing at full volume

ms uint

number of milliseconds the chunk should be played for

Throws

dsdl2.SDLException if failed to play the chunk

Meta