UOdinVolumeEffect
Codec-Effect for the odin audio pipeline. The effect will mutate samples buffer with logarithmic or exponental scale. Provides a simple way for an audio boost functionality. For more complex amplitude checkout dBFS and override the custom effect function.
- Header:
#include "OdinAudio/Effects/OdinVolumeEffect.h" - Module:
Odin - Inherits from:
UOdinCustomEffect - Blueprint: Reflected (UCLASS) · Blueprint reference
Overview
Properties
| Name | Description |
|---|---|
SampleScale | Linear factor the samples are multiplied by, or the gain in decibels if Volume Log10 is set. |
ScaleExponent | Exponent applied to Sample Scale in linear mode. |
VolumeLog10 | If set, SampleScale is a gain in decibels (e.g. |
UserData |
Functions
ConstructVolumeEffect
Static · Blueprint: Construct Volume Effect
Creates a Volume Effect that is not part of a pipeline yet; add it with Insert Custom Effect. Create Volume Effect on a pipeline does both steps.
| Parameter | Type | Description |
|---|---|---|
WorldContextObject | UObject* | |
scale | float | Initial value of Sample Scale. Default: 1.0f. |
Returns UOdinVolumeEffect*
Properties
SampleScale
Blueprint: Get/Set
Linear factor the samples are multiplied by, or the gain in decibels if Volume Log10 is set.
ScaleExponent
Blueprint: Get/Set
Exponent applied to Sample Scale in linear mode.
VolumeLog10
Blueprint: Get/Set
If set, SampleScale is a gain in decibels (e.g. -6 halves the amplitude) instead of a linear factor.