engine
 
载入中...
搜索中...
未找到
类 | Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
Audio::ISpectrumBandExtractor类 参考abstract

Interface for spectrum band extractors. 更多...

#include <SpectrumAnalyzer.h>

类

struct  FBandSettings
 Settings for a single band 更多...
 

Public 类型

enum class  EBandType : uint8 { NearestNeighbor , Lerp , Quadratic , ConstantQ }
 

Public 成员函数

virtual void AddBand (const FBandSettings &InSettings)=0
 Adds a band to extract based on the given settings.
 
virtual void ExtractBands (const AlignedFloatBuffer &InComplexBuffer, double InTimestamp, TArray< float > &OutValues)=0
 Extract the bands from a complex frequency buffer. 更多...
 
virtual int32 GetNumBands () const =0
 Returns the total number of bands.
 
virtual void RemoveAllBands ()=0
 Removes all added bands.
 
virtual void SetSettings (const FSpectrumBandExtractorSettings &InSettings)=0
 Sets and updates the settings for the band extractor
 
virtual void SetSpectrumSettings (const FSpectrumBandExtractorSpectrumSettings &InSettings)=0
 Set the settings and update cached internal values if needed
 

静态 Public 成员函数

static TUniquePtr< ISpectrumBandExtractor > CreateSpectrumBandExtractor (const FSpectrumBandExtractorSettings &InSettings)
 Creates a ISpectrumBandExtractor.
 

详细描述

Interface for spectrum band extractors.

The SpectrumBandExtractor allows for band information to be maintained across multiple calls to retrieve bands values. By maintaining band information across multiple calls, some intermediate values can be cached to speed up the operation.

成员枚举类型说明

◆ EBandType

enum class Audio::ISpectrumBandExtractor::EBandType : uint8
strong
枚举值
NearestNeighbor 

Look up band value via nearest FFT band.

Lerp 

Band value is calculated by lerping between FFT bands adjacent to center frequency.

Quadratic 

Band value is calculated by fitting quadratic to 3 adjancent FFT bands and solving for center frequency.

ConstantQ 

Band value is calculated by a weighted sum of a window of fft bands around center frequency.

The window size is determined by the QFactor of the band.

成员函数说明

◆ ExtractBands()

virtual void Audio::ISpectrumBandExtractor::ExtractBands ( const AlignedFloatBuffer &  InComplexBuffer,
double  InTimestamp,
TArray< float > &  OutValues 
)
pure virtual

Extract the bands from a complex frequency buffer.

参数
InComplexBuffer- Buffer of complex frequency data from a FFT.
InTimestamp- A timestamp associated with the input complex buffer.
OutValues- Array to store output bands.

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