Navigation
API > API/Plugins > API/Plugins/WaveTable
References
| Module | WaveTable |
| Header | /Engine/Plugins/Runtime/WaveTable/Source/WaveTable/Public/WaveTable.h |
| Include | #include "WaveTable.h" |
Syntax
USTRUCT (BlueprintType )
struct FWaveTableData
Remarks
Serialized WaveTable data, that supports multiple bit depth formats.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWaveTableData
(
EWaveTableBitDepth InBitDepth |
|||
FWaveTableData
(
TArrayView< const float > InSamples, |
|||
FWaveTableData
(
TArrayView< const int16 > InSamples, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ArrayMixIn
(
TArrayView< float > OutputWaveSamples, |
Adds this WaveTableData's internal contents to the given float buffer view, initially performing bit depth conversion to values to IEEE_FLOAT if required. | |
| void | Empty () |
Empties the underlying data container, deallocating memory and invalidating the FinalValue. | |
| EWaveTableBitDepth | GetBitDepth () |
||
| FName | |||
| bool | GetDataView
(
TArrayView< float >& OutData |
||
| bool | GetDataView
(
TArrayView< const float >& OutData |
Returns true if ArrayView of underlying Data in the proper sample format, setting OutData to a view of the Table's data. | |
| bool | GetDataView
(
TArrayView< int16 >& OutData |
||
| bool | GetDataView
(
TArrayView< const int16 >& OutData |
||
| float | Returns the value to interpolate to beyond the last value of the DataView. | ||
| float | GetLastValue () |
Returns the last data value value as a float. If DataView is empty, returns 0. | |
| int32 | Returns number of samples within the underlying DataView, not including a FinalValue if set. | ||
| const TArray< uint8 > & | GetRawData () |
Returns read-only view of byte array that stores sample data. | |
| bool | IsEmpty () |
Whether or not the underlying data is empty. | |
| bool | Resample
(
int32 InCurrentSampleRate, |
Resamples the underlying data to a provided new sample rate. | |
| void | Reset
(
int32 NumSamples |
Resets the underlying data to the given number of samples. | |
| bool | SetBitDepth
(
EWaveTableBitDepth InBitDepth |
Converts bit depth and sets internal data to the requested bit depth. | |
| void | SetData
(
TArrayView< const float > InData, |
||
| void | SetData
(
TArrayView< const int16 > InData, |
||
| void | SetFinalValue
(
float InFinalValue |
||
| void | SetRawData
(
EWaveTableBitDepth InBitDepth, |
||
| void | SetRawData
(
EWaveTableBitDepth InBitDepth, |
||
| void | Zero
(
int32 InNumSamples |
Zeros the underlying data. |