Navigation
API > API/Plugins > API/Plugins/Synthesis
| Name | FToneGenerator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Classes/SynthComponents/SynthComponentToneGenerator.h |
| Include Path | #include "SynthComponents/SynthComponentToneGenerator.h" |
Syntax
class FToneGenerator : public ISoundGenerator
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FToneGenerator
(
int32 InSampleRate, |
SynthComponents/SynthComponentToneGenerator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FToneGenerator() |
SynthComponents/SynthComponentToneGenerator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buffer | Audio::FAlignedFloatBuffer | SynthComponents/SynthComponentToneGenerator.h | ||
| CurrentAttenuation | float | SynthComponents/SynthComponentToneGenerator.h | ||
| CurrentDistance | float | SynthComponents/SynthComponentToneGenerator.h | ||
| DistanceAttenuationSettings | Audio::FAudioBufferDistanceAttenuationSettings | SynthComponents/SynthComponentToneGenerator.h | ||
| NumChannels | int32 | SynthComponents/SynthComponentToneGenerator.h | ||
| SineOsc | Audio::FSineOsc | SynthComponents/SynthComponentToneGenerator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetNumChannels() |
SynthComponents/SynthComponentToneGenerator.h | ||
void SetDistance
(
float InDistance |
SynthComponents/SynthComponentToneGenerator.h | ||
void SetFrequency
(
float InFrequency |
SynthComponents/SynthComponentToneGenerator.h | ||
void SetVolume
(
float InVolume |
SynthComponents/SynthComponentToneGenerator.h |
Overridden from ISoundGenerator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 OnGenerateAudio
(
float* OutAudio, |
SynthComponents/SynthComponentToneGenerator.h |