UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeOscillator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
8#include "Sound/SoundNode.h"
9#include "SoundNodeOscillator.generated.h"
10
11class FAudioDevice;
12struct FActiveSound;
14struct FWaveInstance;
15
19UCLASS(hidecategories=Object, editinlinenew, meta=( DisplayName="Oscillator" ))
21{
23
24 /* Whether to oscillate volume. */
25 UPROPERTY(EditAnywhere, Category=Oscillator )
26 uint32 bModulateVolume:1;
27
28 /* Whether to oscillate pitch. */
29 UPROPERTY(EditAnywhere, Category=Oscillator )
30 uint32 bModulatePitch:1;
31
32 /* An amplitude of 0.25 would oscillate between 0.75 and 1.25. */
33 UPROPERTY(EditAnywhere, Category=Oscillator )
34 float AmplitudeMin;
35
36 /* An amplitude of 0.25 would oscillate between 0.75 and 1.25. */
37 UPROPERTY(EditAnywhere, Category=Oscillator )
38 float AmplitudeMax;
39
40 /* A frequency of 20 would oscillate at 10Hz. */
41 UPROPERTY(EditAnywhere, Category=Oscillator )
42 float FrequencyMin;
43
44 /* A frequency of 20 would oscillate at 10Hz. */
45 UPROPERTY(EditAnywhere, Category=Oscillator )
46 float FrequencyMax;
47
48 /* Offset into the sine wave. Value modded by 2 * PI. */
49 UPROPERTY(EditAnywhere, Category=Oscillator )
50 float OffsetMin;
51
52 /* Offset into the sine wave. Value modded by 2 * PI. */
53 UPROPERTY(EditAnywhere, Category=Oscillator )
54 float OffsetMax;
55
56 /* A center of 0.5 would oscillate around 0.5. */
57 UPROPERTY(EditAnywhere, Category=Oscillator )
58 float CenterMin;
59
60 /* A center of 0.5 would oscillate around 0.5. */
61 UPROPERTY(EditAnywhere, Category=Oscillator )
62 float CenterMax;
63
64public:
65 //~ Begin USoundNode Interface.
66 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
67 //~ End USoundNode Interface.
68};
69
70
71
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 AudioDevice.h:417
Definition Array.h:670
Definition SoundNodeOscillator.h:21
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208