![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Dsp.h>
Public Member Functions | |
| TSampleRef (SampleType &InSample) | |
| template<typename ReturnType = float> | |
| ReturnType | AsFloat () const |
| template<typename ReturnType , uint32 ReturnQ = (sizeof(SampleType) * 8 - 1)> | |
| ReturnType | AsFixedPrecisionInt () |
| template<typename OtherSampleType > | |
| TSampleRef< SampleType, Q > & | operator= (const OtherSampleType InSample) |
Friends | |
| template<typename OtherSampleType > | |
| SampleType | operator* (const TSampleRef< SampleType > &LHS, const OtherSampleType &RHS) |
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;
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |