Module |
|
Header |
/Engine/Source/Runtime/SignalProcessing/Public/DSP/Dsp.h |
Include |
#include "DSP/Dsp.h" |
template<typename SampleType, uint32 Q>
class TSampleRef
TSampleRef<SampleType, Q> Ref version of TSample. Useful for converting between fixed and float precisions. Example usage: int16 FixedPrecisionSample; TSampleRef<int16, 15> SampleRef(FixedPrecisionSample);
Set the sample value directly: SampleRef = 0.5f;
Or multiply the the sample: SampleRef *= 0.5f;
bool bThisCodeWorks = FixedPrecisionSample == TNumericLimits<int16>::Max() / 4;
Name | Description | |
---|---|---|
|
TSampleRef ( |
Name | Description | ||
---|---|---|---|
|
ReturnType |
AsFixedPrecisionInt() |
|
|
ReturnType |
AsFloat() |
Name | Description | ||
---|---|---|---|
|
TSampleRef< ... |
operator= ( |