FNiagaraDataInterfaceProxySpectrum

Copyright Epic Games, Inc. All Rights Reserved.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceAudioSpectrum.h

Include

#include "NiagaraDataInterfaceAudioSpectrum.h"

Syntax

struct FNiagaraDataInterfaceProxySpectrum : public FNiagaraDataInterfaceProxySubmix

Remarks

FNiagaraDataInterfaceProxySpectrum

Proxy class for calculating spectrums on the rendering thread for Niagara.

Constructors

Name Description

Public function

FNiagaraDataInterfaceProxySpectrum

(
    float InMinimumFrequency,
    float InMaximumFrequency,
    int32 InNumBands,
    float InNoiseFloorDb,
    int32 InNumSamplesToBuffer
)

Construct an FNiagaraDataInterfaceProxySpectrum

Destructors

Functions

Name Description

Public function

FReadBuffer ...

 

ComputeAndPostSRV()

Public function Const

int32

 

GetNumBands()

Public function

float

 

GetSpectrumValue

(
    float InNormalizedPositionInSpectru...,
    int32 InChannelIndex
)

Sample value from the spectrum buffer.

Public function

void

 

PostDataToGPU()

This function enqueues a render thread command to pop audio off of the SubmixListener, transform it into a CQT, and post it to the GPUAudioBuffer.

Public function

void

 

UpdateCQT

(
    float InMinimumFrequency,
    float InMaximumFrequency,
    int32 InNumBands
)

Updates the minimum and maximum frequency of the CQT on the render thread.

Public function

void

 

UpdateNoiseFloor

(
    float InNoiseFloorDb
)

Updates the value considered silence in decibles on the render thread.

Public function

void

 

UpdateSpectrum()

Calculates the CQT.

Overridden from FNiagaraDataInterfaceProxy

Typedefs