Navigation
API > API/Plugins > API/Plugins/WaveTable
References
| Module | WaveTable |
| Header | /Engine/Plugins/Runtime/WaveTable/Source/WaveTable/Public/WaveTableSampler.h |
| Include | #include "WaveTableSampler.h" |
Syntax
class FWaveTableSampler
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWaveTableSampler
(
FSettings&& InSettings |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | If set to one-shot, returns the first index where a reverse or stall occurred in the provided interpolated index, ignoring samples where a "sync" request took place. | ||
| const FSettings & | GetSettings () |
||
| void | Interpolate
(
const FWaveTableData& InTableData, |
Interpolates and converts values in the given table for each provided index in the index-to-samples TArrayView (an array of sub-sample, floating point indices) | |
| void | Interpolate
(
TArrayView< const int16 > InTableView, |
Interpolates and converts values in the given table for each provided index in the index-to-samples TArrayView (an array of sub-sample, floating point indices) | |
| void | Interpolate
(
TArrayView< const float > InTableView, |
Interpolates and converts values in the given table for each provided index in the index-to-samples TArrayView (an array of sub-sample, floating point indices) | |
| float | Process
(
const FWaveTableView& InTableView, |
Retrieves the sample value at the currently set phase, returning the floating point index which the current phase corresponds to. | |
| float | Process
(
const FWaveTableView& InTableView, |
Resamples entire table length into given view. | |
| float | Process
(
const FWaveTableData& InTableData, |
Retrieves the sample value at the currently set phase, returning the floating point index which the current phase corresponds to. | |
| float | Process
(
const FWaveTableView& InTableView, |
Retrieves the sample value at the currently set phase, returning the floating point index which the current phase corresponds to. | |
| float | Process
(
const FWaveTableData& InTableData, |
Retrieves the sample value at the currently set phase, returning the floating point index which the current phase corresponds to. | |
| void | Reset () |
Resets the last index operated on, restarting the interpolation process for subsequent calls. | |
| void | SetFreq
(
float InFreq |
||
| void | SetInterpolationMode
(
EInterpolationMode InMode |
||
| void | SetOneShot
(
bool bInLooping |
||
| void | SetPhase
(
float InPhase |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FSettings |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EInterpolationMode | Interpolation mode when sampling values between indices. | ||
| ESingleSampleMode | Mode of interpolation between last value in table and subsequent input index when sampling single values. |