Base class for visualisation actors, implementing the audio processing interface. This class provides functionality for handling audio input/output, initialization, and updates. More...
#include <ST_VisBase.h>
Public Member Functions | |
| AST_VisBase () | |
| virtual void | Tick (float DeltaTime) override |
| virtual void | BeginPlay () override |
| virtual void | HandleBeginPlay () |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| virtual bool | RegisterToIO (EAudioIOType NewAudioIOType) |
| bool | RegisterToIO (int32 NewAudioIOType) |
| virtual void | DeregisterFromIO (EAudioIOType CurrAudioIOType) |
| void | DeregisterFromIO (int32 CurrAudioIOType) |
| virtual bool | SetConstantParameters () |
| virtual bool | SetDynamicParameters () |
| Public Member Functions inherited from IST_AudioProcessingInterface | |
| void | OnAudioIOStatusChanged (const bool bIsActive, const FIntPoint IOId) |
| Event triggered when the status of an audio I/O device changes. | |
| void | OnRawMagnitudesReady (const TArray< float > &RawMagnitudes, const FIntPoint IOId) |
| Event triggered when raw magnitude data is ready for an audio I/O device. | |
| void | OnFrequencyBandsReady (const TArray< float > &FrequencyBands, const int32 NumFrequencyBands, const FIntPoint IOId) |
| Event triggered when frequency band data is ready for an audio I/O device. | |
| void | OnAmplitudesReady (const TArray< float > &Amplitudes, const FIntPoint IOId) |
| Event triggered when amplitude data is ready for an audio I/O device. | |
| void | OnPitchesReady (const TArray< float > &Pitches, const FIntPoint IOId) |
| Event triggered when pitch data is ready for an audio I/O device. | |
| void | OnBeatDetected (const TArray< float > &Beats, const TArray< FChannelBeatDetection > &BeatDetectionForChannel, const FIntPoint IOId) |
| Event triggered when a beat is detected in the audio data for an I/O device. | |
Protected Member Functions | |
| virtual void | PostInitializeComponents () override |
Protected Attributes | |
| USceneComponent * | Root = nullptr |
| bool | bCustomBeginPlay = false |
| bool | bSamplerActivates = false |
| bool | bZeroSamplersDeactivates = false |
| int32 | Default_AudioIOs = 0 |
| int32 | Registered_AudioIOs = 0 |
Base class for visualisation actors, implementing the audio processing interface. This class provides functionality for handling audio input/output, initialization, and updates.
| AST_VisBase::AST_VisBase | ( | ) |
Default constructor for AST_VisBase.
|
overridevirtual |
Called when the game starts or when spawned.
Reimplemented in AST_C_VisAudioReactiveBoids, AST_N_VisFrequencyBuffer, and AST_VisComputeBase.
|
inlinevirtual |
Deregisters the actor from an audio input/output type.
| void AST_VisBase::DeregisterFromIO | ( | int32 | CurrAudioIOType | ) |
Overloaded method to deregister the actor from an audio input/output type using an integer.
|
overridevirtual |
Called when the actor is destroyed or the game ends.
Reimplemented in AST_M_VisMIDIControlled.
|
virtual |
Custom method called from the game state at the start of the game.
Reimplemented in AST_M_VisMIDIControlled, and AST_VisNiagaraBase.
|
overrideprotectedvirtual |
Called after components have been initialized.
|
inlinevirtual |
Registers the actor to an audio input/output type.
| bool AST_VisBase::RegisterToIO | ( | int32 | NewAudioIOType | ) |
Overloaded method to register the actor to an audio input/output type using an integer.
|
virtual |
Sets constant parameters for the visualisation actor.
Reimplemented in AST_C_VisAudioReactiveBoids, AST_M_VisMIDIControlled, AST_M_VisMPC, AST_N_VisAmplitude, AST_N_VisBeatDetection, AST_N_VisFrequency, AST_N_VisFrequencyBuffer, and AST_N_VisPitch.
|
virtual |
Sets dynamic parameters for the visualisation actor.
Reimplemented in AST_C_VisAudioReactiveBoids, AST_M_VisMIDIControlled, AST_M_VisMPC, and AST_N_VisFrequencyBuffer.
|
overridevirtual |
Called every frame to update the actor.
Reimplemented in AST_VisComputeBase.
|
protected |
Flag to specify if custom begin play logic is enabled.
|
protected |
Flag to specify if the sampler activates the visualisation.
|
protected |
Flag to specify if zero samplers deactivate the visualisation.
|
protected |
Default audio input/output types for the visualisation actor.
|
protected |
Registered audio input/output types for the visualisation actor.
|
protected |
Root scene component for the actor.