UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeLooping.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 "EngineDefines.h"
9#include "Sound/SoundNode.h"
10#include "SoundNodeLooping.generated.h"
11
12class FAudioDevice;
13struct FActiveSound;
15struct FWaveInstance;
16
23UCLASS(hidecategories=Object, editinlinenew, MinimalAPI, meta=( DisplayName="Looping" ))
25{
27
28 /* The amount of times to loop */
29 UPROPERTY(EditAnywhere, Category = Looping, meta = (ClampMin = 1, EditCondition = "!bLoopIndefinitely"))
30 int32 LoopCount;
31
32 /* If enabled, the node will continue to loop indefinitely regardless of the Loop Count value. */
33 UPROPERTY(EditAnywhere, Category = Looping)
34 uint32 bLoopIndefinitely : 1;
35
36public:
37 //~ Begin USoundNode interface.
38 virtual bool NotifyWaveInstanceFinished( struct FWaveInstance* WaveInstance ) override;
39 virtual float GetDuration() override;
40 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
41 virtual int32 GetNumSounds(const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound) const;
42 //~ End USoundNode interface.
43
44private:
47};
48
49
50
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 AudioDevice.h:417
Definition Array.h:670
Definition SoundNodeLooping.h:25
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition ActiveSound.h:64
Definition Audio.h:180
FActiveSound * ActiveSound
Definition Audio.h:208