Chunk.fadeIn

Wraps Mix_FadeInChannelTimed which plays the chunk on the first available free channel with a fade-in effect

class Chunk
const @trusted
const(Channel)
fadeIn
(
uint loops = 1
,
uint fadeMs = 0
,
uint ms = cast(uint)-1
)

Parameters

loops uint

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

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

Return Value

Type: const(Channel)

dsdl2.mixer.Channel the chunk is played on; null if no free channel

Meta