Music.fadeIn

Wraps Mix_FadeInMusicPos which plays the dsdl2.mixer.Music with a fade-in effect

class Music
const @trusted
void
fadeIn
(
uint loops = 1
,
uint fadeMs = 0
,
double position = 0
)

Parameters

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

position double

start timestamp of the music in seconds

Throws

dsdl2.SDLException if failed to play the music

Meta