UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeQualityLevel.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 "SoundNodeQualityLevel.generated.h"
10
11class FAudioDevice;
12struct FActiveSound;
14struct FWaveInstance;
15
20UCLASS(hidecategories=Object, editinlinenew, MinimalAPI, meta=( DisplayName="Quality Level" ))
22{
24
25public:
26
27 //~ Begin UObject Interface
28 virtual void PostLoad() override;
29 //~ End UObject Interface
30
31 //~ Begin USoundNode Interface.
32 virtual void Serialize(FArchive& Ar) override;
33 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
34 virtual int32 GetMaxChildNodes() const override;
35 virtual int32 GetMinChildNodes() const override;
36 virtual void PrimeChildWavePlayers(bool bRecurse) override;
37 virtual void RetainChildWavePlayers(bool bRecurse) override;
38 virtual void ReleaseRetainerOnChildWavePlayers(bool bRecurse) override;
39 void LoadChildWavePlayers(bool bAddToRoot, bool bRecurse);
40
41#if WITH_EDITOR
42 virtual FText GetInputPinName(int32 PinIndex) const override;
43#endif
44 //~ End USoundNode Interface.
45
46 // A Property to indicate which quality this node was cooked with. (INDEX_NONE if not cooked, or unset).
47 UPROPERTY()
48 int32 CookedQualityLevelIndex = INDEX_NONE;
49
50#if WITH_EDITOR
52
53 // Critical section to protect Child nodes array while serializing
55#endif
56
57private:
58 virtual void ForCurrentQualityLevel(TFunction<void(USoundNode*)>&& Lambda);
59};
60
@ INDEX_NONE
Definition CoreMiscDefines.h:150
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
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
int32 ParseParams(const FString &ParamStr, TArray< FString > &OutArray)
Definition NativeJSScripting.cpp:193
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Archive.h:1208
Definition AudioDevice.h:417
Definition Text.h:385
Definition Array.h:670
Definition AndroidPlatformMisc.h:14
Definition SoundNodeQualityLevel.h:22
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208