engine
 
载入中...
搜索中...
未找到
所有成员列表
Audio::TSampleRef< SampleType, Q > 模板类 参考

TSampleRef<SampleType, Q> Ref version of TSample. 更多...

#include <Dsp.h>

详细描述

template<typename SampleType, uint32 Q = (sizeof(SampleType) * 8 - 1)>
class Audio::TSampleRef< SampleType, Q >

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;


该类的文档由以下文件生成: