TSample

TSample Variant type to simplify converting and performing operations on fixed precision and floating point samples.

Windows
MacOS
Linux

References

Module

SignalProcessing

Header

/Engine/Source/Runtime/SignalProcessing/Public/DSP/Dsp.h

Include

#include "DSP/Dsp.h"

Syntax

template<typename SampleType, uint32 Q>
class TSample

Remarks

TSample<SampleType, Q> Variant type to simplify converting and performing operations on fixed precision and floating point samples.

Constructors

Name Description

Public function

TSample

(
    SampleType& InSample
)

Functions

Name Description

Public function

ReturnType

 

AsFixedPrecisionInt()

Public function Const

ReturnType

 

AsFloat()

Operators

Name Description

Public function

TSample< Sam...

 

operator=

(
    const OtherSampleType InSample
)

Constants

Name

Description

MaxValue

For fixed precision types, the max and min values that we can represent are calculated here:

MinValue

QFactor

This is the number used to convert from float to our fixed precision value.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss