Navigation
API > API/Runtime > API/Runtime/AudioMixer > API/Runtime/AudioMixer/USynthComponent
Description
This function allows designers to call Play on an Audio Component instance while applying a volume curve over time. Parameters allow designers to indicate the duration of the fade, the curve shape, and the start time if seeking into the sound.
| Name | FadeIn |
| Type | function |
| Header File | /Engine/Source/Runtime/AudioMixer/Public/Components/SynthComponent.h |
| Include Path | #include "Components/SynthComponent.h" |
| Source | /Engine/Source/Runtime/AudioMixer/Private/Components/SynthComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Audio|Components|Audio")
void FadeIn
(
float FadeInDuration,
float FadeVolumeLevel,
float StartTime,
const EAudioFaderCurve FadeCurve
) const
Parameters
| Name | Remarks |
|---|---|
| FadeInDuration | How long it should take to reach the FadeVolumeLevel |
| FadeVolumeLevel | The percentage of the AudioComponents's calculated volume to fade to |
| FadeCurve | The curve to use when interpolating between the old and new volume |