Navigation
API > API/Runtime > API/Runtime/SignalProcessing
Pitched oscillator.
| Name | FOsc |
| Type | class |
| Header File | /Engine/Source/Runtime/SignalProcessing/Public/DSP/Osc.h |
| Include Path | #include "DSP/Osc.h" |
Syntax
class FOsc : public Audio::IOscBase
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOsc() |
DSP/Osc.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FOsc() |
DSP/Osc.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EOsc::Type GetType() |
Gets the oscillator type. | DSP/Osc.h | |
void SetType
(
const EOsc::Type InType |
Sets the oscillator type. | DSP/Osc.h |
Overridden from IOscBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float Generate
(
float* AuxOutput |
Generates the next sample of audio, optionally passes out the auxillary output (supported in some oscillators) | DSP/Osc.h | |
virtual void Reset() |
Resets the oscillator. | DSP/Osc.h | |
virtual void Start() |
Starts the oscillator. | DSP/Osc.h | |
virtual void Stop() |
Stops the oscillator. | DSP/Osc.h | |
virtual void Update() |
Updates oscillator state. | DSP/Osc.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float PolySmooth
(
const float InPhase, |
Smooth out the saw-tooth discontinuities to improve aliasing. | DSP/Osc.h |