UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeEnveloper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Curves/CurveFloat.h"
8#include "Sound/SoundNode.h"
9#include "SoundNodeEnveloper.generated.h"
10
11class FAudioDevice;
12struct FActiveSound;
14struct FWaveInstance;
15
19UCLASS(hidecategories=Object, editinlinenew, MinimalAPI, meta=( DisplayName="Enveloper" ))
21{
23
24 // The time in seconds where the envelope's loop begins.
25 UPROPERTY(EditAnywhere, Category=Looping)
26 float LoopStart;
27
28 // The time in seconds where the envelope's loop ends.
29 UPROPERTY(EditAnywhere, Category=Looping)
30 float LoopEnd;
31
32 // The time in seconds it takes the evelope to fade out after the last loop is completed.
33 UPROPERTY(EditAnywhere, Category=Looping)
34 float DurationAfterLoop;
35
36 // The number of times the envelope should loop if looping is enabled and the envelope is not set to loop indefinitely.
37 UPROPERTY(EditAnywhere, Category=Looping)
38 int32 LoopCount;
39
40 // If enabled, the envelope will continue to loop indefenitely regardless of the Loop Count value.
41 UPROPERTY(EditAnywhere, Category=Looping)
42 uint32 bLoopIndefinitely:1;
43
44 // If enabled, the envelope will loop using the loop settings.
45 UPROPERTY(EditAnywhere, Category=Looping)
46 uint32 bLoop:1;
47
48 UPROPERTY()
49 TObjectPtr<class UDistributionFloatConstantCurve> VolumeInterpCurve_DEPRECATED;
50
51 UPROPERTY()
52 TObjectPtr<class UDistributionFloatConstantCurve> PitchInterpCurve_DEPRECATED;
53
54 // The distribution defining the volume envelope.
55 UPROPERTY(EditAnywhere, Category=Envelope)
56 FRuntimeFloatCurve VolumeCurve;
57
58 // The distribution defining the pitch envelope.
59 UPROPERTY(EditAnywhere, Category=Envelope)
60 FRuntimeFloatCurve PitchCurve;
61
62 // The minimum pitch for the input sound.
63 UPROPERTY(EditAnywhere, Category=Modulation, meta=(ToolTip="The lower bound of pitch (1.0 is no change)"))
64 float PitchMin;
65
66 // The maximum pitch for the input sound.
67 UPROPERTY(EditAnywhere, Category=Modulation, meta=(ToolTip="The upper bound of pitch (1.0 is no change)"))
68 float PitchMax;
69
70 // The minimum volume for the input sound.
71 UPROPERTY(EditAnywhere, Category=Modulation, meta=(ToolTip="The lower bound of volume (1.0 is no change)"))
72 float VolumeMin;
73
74 // The maximum volume for the input sound.
75 UPROPERTY(EditAnywhere, Category=Modulation, meta=(ToolTip="The upper bound of volume (1.0 is no change)"))
76 float VolumeMax;
77
78
79public:
80 //~ Begin UObject Interface.
81#if WITH_EDITOR
82 virtual void PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent) override;
83#endif // WITH_EDITOR
84 virtual void PostInitProperties() override;
85 virtual void Serialize(FArchive& Ar) override;
86 //~ End UObject Interface.
87
88
89 //~ Begin USoundNode Interface.
90 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
91 virtual float GetDuration() override;
92 //~ End USoundNode Interface.
93
94};
95
96
97
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::UPTRINT UPTRINT
An unsigned integer the same size as a pointer.
Definition Platform.h:1146
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
int32 ParseParams(const FString &ParamStr, TArray< FString > &OutArray)
Definition NativeJSScripting.cpp:193
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition AudioDevice.h:417
Definition Array.h:670
Definition SoundNodeEnveloper.h:21
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition UnrealType.h:6865
Definition CurveFloat.h:13
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208
Definition ObjectPtr.h:488