Function Chunk.fadeIn

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

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

Parameters

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

Returns

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