VJ Master 1.0
Real-time audio analysis and visualisation.
Loading...
Searching...
No Matches
AST_AudioControlRTLEDBase Class Reference

Base class for audio control actors that manage real-time LED visualization via a scene capture. More...

#include <ST_AudioControlRTLEDBase.h>

Public Member Functions

 AST_AudioControlRTLEDBase ()
void SetRenderTarget (UTextureRenderTarget2D *_Target)
Public Member Functions inherited from AST_AudioControlBase
 AST_AudioControlBase ()

Protected Member Functions

virtual void BeginPlay () override
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
virtual void Tick (float DeltaTime) override
bool CreateRenderTarget (FIntPoint PrevisResolution)
bool SetupSceneCapture ()
bool SetupBuffers (FLEDConfig LEDConfig, FIntPoint LEDResolution)
Protected Member Functions inherited from AST_AudioControlBase
bool IsEditorNotPlaying ()

Protected Attributes

class USceneCaptureComponent2D * SceneCapture = nullptr
UTextureRenderTarget2D * RenderTarget = nullptr
TArray< FColor > MappedLEDColours
TArray< FColor > PrevisLEDColours
TArray< TObjectPtr< AActor > > ShowOnlyActors
bool bRegistered = false
TArray< uint8 > LEDColourByteArray
Protected Attributes inherited from AST_AudioControlBase
USceneComponent * Root = nullptr

Detailed Description

Base class for audio control actors that manage real-time LED visualization via a scene capture.

Constructor & Destructor Documentation

◆ AST_AudioControlRTLEDBase()

AST_AudioControlRTLEDBase::AST_AudioControlRTLEDBase ( )

Default constructor.

Member Function Documentation

◆ BeginPlay()

void AST_AudioControlRTLEDBase::BeginPlay ( )
overrideprotectedvirtual

Called when the game starts or when spawned.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_SocketRTLED.

◆ CreateRenderTarget()

bool AST_AudioControlRTLEDBase::CreateRenderTarget ( FIntPoint PrevisResolution)
protected

Creates a render target with the specified resolution.

Parameters
PrevisResolution- Desired preview resolution.
Returns
True if the render target was created successfully.

◆ EndPlay()

void AST_AudioControlRTLEDBase::EndPlay ( const EEndPlayReason::Type EndPlayReason)
overrideprotectedvirtual

Called when the actor is ending play.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_SocketRTLED.

◆ SetRenderTarget()

void AST_AudioControlRTLEDBase::SetRenderTarget ( UTextureRenderTarget2D * _Target)

Sets the render target for rendering LED visuals.

Parameters
_Target- The new render target to apply.

◆ SetupBuffers()

bool AST_AudioControlRTLEDBase::SetupBuffers ( FLEDConfig LEDConfig,
FIntPoint LEDResolution )
protected

Initializes the LED buffers based on the LED configuration and resolution.

Parameters
LEDConfig- The LED configuration parameters.
LEDResolution- The LED resolution to use.
Returns
True if the buffers were successfully set up.

◆ SetupSceneCapture()

bool AST_AudioControlRTLEDBase::SetupSceneCapture ( )
protected

Sets up the scene capture component.

◆ Tick()

void AST_AudioControlRTLEDBase::Tick ( float DeltaTime)
overrideprotectedvirtual

Called every frame.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_SocketRTLED.

Member Data Documentation

◆ bRegistered

bool AST_AudioControlRTLEDBase::bRegistered = false
protected

Whether the LED buffers have been registered.

◆ LEDColourByteArray

TArray<uint8> AST_AudioControlRTLEDBase::LEDColourByteArray
protected

Raw byte array representing LED color data.

◆ MappedLEDColours

TArray<FColor> AST_AudioControlRTLEDBase::MappedLEDColours
protected

Mapped LED colors after processing.

◆ PrevisLEDColours

TArray<FColor> AST_AudioControlRTLEDBase::PrevisLEDColours
protected

LED colors for preview visualization.

◆ RenderTarget

UTextureRenderTarget2D* AST_AudioControlRTLEDBase::RenderTarget = nullptr
protected

Render target texture used for rendering LED visualization.

◆ SceneCapture

class USceneCaptureComponent2D* AST_AudioControlRTLEDBase::SceneCapture = nullptr
protected

The scene capture component used for rendering to the render target.

◆ ShowOnlyActors

TArray<TObjectPtr<AActor> > AST_AudioControlRTLEDBase::ShowOnlyActors
protected

List of actors to show only in the scene capture.


The documentation for this class was generated from the following files:
  • H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioVisualisation/Public/Control/Base/ST_AudioControlRTLEDBase.h
  • H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioVisualisation/Private/Control/Base/ST_AudioControlRTLEDBase.cpp