FNiagaraDataInterfaceProxyOscilloscope

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

FNiagaraDataInterfaceProxy

FNiagaraDataInterfaceProxyOscilloscope

References

Module

Niagara

Header

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

Include

#include "NiagaraDataInterfaceAudioOscilloscope.h"

Syntax

struct FNiagaraDataInterfaceProxyOscilloscope : public FNiagaraDataInterfaceProxy

Remarks

Copyright Epic Games, Inc. All Rights Reserved.

Constructors

Name Description

Public function

FNiagaraDataInterfaceProxyOscilloscope

(
    int32 InResolution,
    float InScopeInMillseconds
)

Destructors

Functions

Name Description

Public function

FReadBuffer ...

 

ComputeAndPostSRV()

Public function

int32

 

DownsampleAudioToBuffer()

This function pops audio and downsamples it to our specified resolution. Returns the number of frames of audio in the downsampled buffer.

Public function

int32

 

GetNumChannels()

Public function

void

 

OnBeginDestroy()

Public function

void

 

OnUpdateResampling

(
    int32 InResolution,
    float InScopeInMilliseconds
)

Called when Resolution or Zoom are changed.

Public function

void

 

OnUpdateSubmix

(
    USoundSubmix* Submix
)

Called when the Submix property changes.

Public function

void

 

PostAudioToGPU()

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

Public function

void

 

RegisterToAllAudioDevices()

Public function

float

 

SampleAudio

(
    float NormalizedPositionInBuffer,
    int32 Channel,
    int32 NumFramesInBuffer,
    int32 NumChannelsInBuffer
)

Sample vertical displacement from the oscilloscope buffer.

Public function

void

 

UnregisterFromAllAudioDevices

(
    USoundSubmix* Submix
)

Overridden from FNiagaraDataInterfaceProxy

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