Navigation
API > API/Plugins > API/Plugins/Synthesis
| Name | USynthComponentToneGenerator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Classes/SynthComponents/SynthComponentToneGenerator.h |
| Include Path | #include "SynthComponents/SynthComponentToneGenerator.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=Synth, Meta=(BlueprintSpawnableComponent))
class USynthComponentToneGenerator : public USynthComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → USynthComponent → USynthComponentToneGenerator
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USynthComponentToneGenerator
(
const FObjectInitializer& ObjInitializer |
SynthComponents/SynthComponentToneGenerator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~USynthComponentToneGenerator() |
SynthComponents/SynthComponentToneGenerator.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttenuationDbAtMaxRange | float | An attenuation, in decibels, to apply to the sound at max range. | SynthComponents/SynthComponentToneGenerator.h |
|
| DistanceAttenuationCurve | FRuntimeFloatCurve | A distance attenuation curve to use to attenuate the audio. | SynthComponents/SynthComponentToneGenerator.h |
|
| DistanceRange | FVector2D | A distance range over which to apply distance attenuation using the supplied curve. | SynthComponents/SynthComponentToneGenerator.h |
|
| Frequency | float | The frequency (in hz) of the tone generator. | SynthComponents/SynthComponentToneGenerator.h |
|
| Volume | float | The linear volume of the tone generator. | SynthComponents/SynthComponentToneGenerator.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DistanceAttenuationSettings | Audio::FAudioBufferDistanceAttenuationSettings | SynthComponents/SynthComponentToneGenerator.h | ||
| ToneGenerator | ISoundGeneratorPtr | SynthComponents/SynthComponentToneGenerator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ISoundGeneratorPtr CreateSoundGenerator
(
const FSoundGeneratorInitParams& InParams |
SynthComponents/SynthComponentToneGenerator.h | ||
void SetFrequency
(
float InFrequency |
Sets the frequency of the tone generator. | SynthComponents/SynthComponentToneGenerator.h |
|
void SetVolume
(
float InVolume |
Sets the volume of the tone generator. | SynthComponents/SynthComponentToneGenerator.h |
|
virtual void TickComponent
(
float DeltaTime, |
Tick this component to get the current position of the component to pass to the attenuator. | SynthComponents/SynthComponentToneGenerator.h |