UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundNodeDoppler.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 "AudioDevice.h"
8#include "Sound/SoundNode.h"
9#include "SoundNodeDoppler.generated.h"
10
11struct FActiveSound;
13
17UCLASS(hidecategories=Object, editinlinenew, meta=( DisplayName="Doppler" ))
19{
21
22 /* How much to scale the doppler shift (1.0 is normal). */
23 UPROPERTY(EditAnywhere, Category=Doppler )
24 float DopplerIntensity;
25
27 UPROPERTY(EditAnywhere, Category=Doppler)
28 bool bUseSmoothing;
29
31 UPROPERTY(EditAnywhere, Category = Doppler, meta = (EditCondition = "bUseSmoothing"))
32 float SmoothingInterpSpeed;
33
34
35public:
36 //~ Begin USoundNode Interface.
37 virtual void ParseNodes( FAudioDevice* AudioDevice, const UPTRINT NodeWaveInstanceHash, FActiveSound& ActiveSound, const FSoundParseParameters& ParseParams, TArray<FWaveInstance*>& WaveInstances ) override;
38 //~ End USoundNode Interface.
39
40protected:
41 // @todo document
42 float GetDopplerPitchMultiplier(float& CurrentPitchScale, bool bSmooth, FListener const& InListener, const FVector Location, const FVector Velocity, float DeltaTime);
43};
44
45
46
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 SoundNodeDoppler.h:19
Definition SoundNode.h:58
Definition ActiveSound.h:283
Definition AudioDevice.h:156
Definition ActiveSound.h:64