Navigation
API > API/Runtime > API/Runtime/SignalProcessing > API/Runtime/SignalProcessing/DSP
References
| Module | SignalProcessing |
| Header | /Engine/Source/Runtime/SignalProcessing/Public/DSP/VolumeFader.h |
| Include | #include "DSP/VolumeFader.h" |
Syntax
class FVolumeFader
Remarks
Control-rate fader for managing volume fades of various standard shapes.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FVolumeFader () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Activate () |
Activates the fader if currently deactivated. Sets duration to indefinite (-1.0f) | |
| void | Deactivate () |
Deactivates the fader, causing it to remain at the current value and disregard update. | |
| float | Gets time fader is to remain active (-1.0f if always active). | ||
| EFaderCurve | GetCurve () |
Returns the curve type of the fader | |
| float | Returns the duration of the fade. | ||
| float | Returns the target volume of the fader | ||
| float | GetVolume () |
Returns current volume of fader | |
| float | GetVolumeAfterTime
(
float InDeltaTime |
Returns the volume given the delta from the current time into the future (Effectively like running to retrieve volume but without actually updating internal state). | |
| bool | IsActive () |
Whether or not the fader is active. | |
| bool | IsFading () |
Returns whether or not the fader is currently fading over time. | |
| bool | IsFadingIn () |
Returns whether or not the fader is currently fading over time and value is increasing. | |
| bool | IsFadingOut () |
Returns whether or not the fader is currently fading over time and value is decreasing. | |
| void | SetActiveDuration
(
float InDuration |
Sets the duration the fader is to be active in the future, after which point the fader is disabled. | |
| void | SetVolume
(
float InVolume |
Sets the volume immediately, interrupting any currently active fade. | |
| void | StartFade
(
float InVolume, |
Applies a volume fade over time with the provided parameters. | |
| void | StopFade () |
Stops fade, maintaining the current value as the target. | |
| void | Update
(
float InDeltaTime |
Updates the fader's state with the given delta in time since last update. |