UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeSoundClass.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 "SoundNodeSoundClass.generated.h"
10
11class USoundClass;
12struct FActiveSound;
14struct FWaveInstance;
15
19UCLASS(hidecategories=Object, editinlinenew, MinimalAPI, meta=( DisplayName="SoundClass" ))
21{
23
24 UPROPERTY(EditAnywhere, Category=SoundClass)
25 TObjectPtr<USoundClass> SoundClassOverride;
26
27public:
28 //~ Begin USoundNode Interface.
29 virtual void ParseNodes( class FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
30 //~ End USoundNode Interface.
31
32 virtual void PostLoad() override;
33 virtual void BeginDestroy() override;
34
35private:
36 // This is set to true if this node's soundclass specifically dictates that a sound should be retained.
37 bool bRetainingAudioDueToSoundClass;
38};
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
Definition AudioDevice.h:417
Definition Array.h:670
Definition SoundClass.h:209
Definition SoundNodeSoundClass.h:21
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208
TObjectPtr< USoundClass > SoundClass
Definition Audio.h:190
Definition ObjectPtr.h:488