|
CriWare Unreal Engine
Plug-ins for CriWare solutions.
|
#include <AtomVolumeFader.h>
公開メンバ関数 | |
| FAtomVolumeFader () | |
| void | Activate () |
| void | Deactivate () |
| float | GetActiveDuration () const |
| EAtomFaderCurve | GetCurve () const |
| float | GetFadeDuration () const |
| float | GetTargetVolume () const |
| float | GetVolume () const |
| float | GetVolumeAfterTime (float InDeltaTime) const |
| bool | IsActive () const |
| bool | IsFading () const |
| bool | IsFadingIn () const |
| bool | IsFadingOut () const |
| void | SetActiveDuration (float InDuration) |
| void | SetVolume (float InVolume) |
| void | StartFade (float InVolume, float InDuration, EAtomFaderCurve InCurve) |
| void | StopFade () |
| void | Update (float InDeltaTime) |
静的非公開メンバ関数 | |
| static float | AlphaToVolume (float InAlpha, EAtomFaderCurve InCurve) |
非公開変数類 | |
| float | ActiveDuration |
| float | Alpha |
| float | Elapsed |
| EAtomFaderCurve | FadeCurve |
| float | FadeDuration |
| float | Target |
Control-rate fader for managing volume fades of various standard shapes.
| FAtomVolumeFader::FAtomVolumeFader | ( | ) |
| void FAtomVolumeFader::Activate | ( | ) |
Activates the fader if currently deactivated. Sets duration to indefinite (-1.0f)
|
staticprivate |
Converts value to final resulting volume
| void FAtomVolumeFader::Deactivate | ( | ) |
Deactivates the fader, causing it to remain at the current value and disregard update.
| float FAtomVolumeFader::GetActiveDuration | ( | ) | const |
Gets time fader is to remain active (-1.0f if always active).
| EAtomFaderCurve FAtomVolumeFader::GetCurve | ( | ) | const |
Returns the curve type of the fader
| float FAtomVolumeFader::GetFadeDuration | ( | ) | const |
Returns the duration of the fade.
| float FAtomVolumeFader::GetTargetVolume | ( | ) | const |
Returns the target volume of the fader
| float FAtomVolumeFader::GetVolume | ( | ) | const |
Returns current volume of fader
| float FAtomVolumeFader::GetVolumeAfterTime | ( | float | InDeltaTime | ) | const |
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 FAtomVolumeFader::IsActive | ( | ) | const |
Whether or not the fader is active.
| bool FAtomVolumeFader::IsFading | ( | ) | const |
Returns whether or not the fader is currently fading over time.
| bool FAtomVolumeFader::IsFadingIn | ( | ) | const |
Returns whether or not the fader is currently fading over time and value is increasing.
| bool FAtomVolumeFader::IsFadingOut | ( | ) | const |
Returns whether or not the fader is currently fading over time and value is decreasing.
| void FAtomVolumeFader::SetActiveDuration | ( | float | InDuration | ) |
Sets the duration the fader is to be active in the future, after which point the fader is disabled. When disabled, fader will hold the current fade state until activated, at which point it will continue applying the fade over the remainder of the fade duration.
| void FAtomVolumeFader::SetVolume | ( | float | InVolume | ) |
Sets the volume immediately, interrupting any currently active fade.
| void FAtomVolumeFader::StartFade | ( | float | InVolume, |
| float | InDuration, | ||
| EAtomFaderCurve | InCurve ) |
Applies a volume fade over time with the provided parameters.
| void FAtomVolumeFader::StopFade | ( | ) |
Stops fade, maintaining the current value as the target.
| void FAtomVolumeFader::Update | ( | float | InDeltaTime | ) |
Updates the fader's state with the given delta in time since last update.
|
private |
Duration fader is to be active
|
private |
Current value used to linear interpolate over update delta (Normalized value for non-log, -80dB to 0dB for log)
|
private |
Time elapsed since fade has been initiated
|
private |
Audio fader curve to use
|
private |
Duration fader is to perform fade
|
private |
Target value used to linear interpolate over update delta (Normalized value for non-log, -80dB to 0dB for log)