Function Channel.fadeIn

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

void fadeIn (
  const(Chunk) chunk,
  uint loops = 1u,
  uint fadeMs = 0u,
  uint ms = 4294967295u
) @trusted const;

Parameters

NameDescription
chunk Chunk to be played
loops how many times the chunk should be played (cast(uint) -1 for infinity)
fadeMs number of milliseconds the chunk fades in before fully playing at full volume
ms number of milliseconds the chunk should be played for

Throws

dsdl2.SDLException if failed to play the chunk