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

Base class for audio control actors that manage a material-driven LED visualization. More...

#include <ST_AudioControlMatLEDBase.h>

Public Member Functions

 AST_AudioControlMatLEDBase ()
void SetMaterial (UMaterialInterface *NewMat)
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 SetResolution (FIntPoint PrevisResolution)
bool SetupBuffers (FLEDConfig LEDConfig, FIntPoint LEDResolution)
Protected Member Functions inherited from AST_AudioControlBase
bool IsEditorNotPlaying ()

Protected Attributes

UTextureRenderTarget2D * RenderTarget = nullptr
TArray< FColor > PrevisLEDColours
TArray< FColor > MappedLEDColours
TArray< uint8 > LEDColourByteArray
bool bRegistered = false
Protected Attributes inherited from AST_AudioControlBase
USceneComponent * Root = nullptr

Detailed Description

Base class for audio control actors that manage a material-driven LED visualization.

Constructor & Destructor Documentation

◆ AST_AudioControlMatLEDBase()

AST_AudioControlMatLEDBase::AST_AudioControlMatLEDBase ( )

Default constructor.

Member Function Documentation

◆ BeginPlay()

void AST_AudioControlMatLEDBase::BeginPlay ( )
overrideprotectedvirtual

Called when the game starts or when spawned.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_DMXMatLED, AST_OSCMatLED, and AST_SocketMatLED.

◆ EndPlay()

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

Called when the actor is ending play.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_DMXMatLED, AST_OSCMatLED, and AST_SocketMatLED.

◆ SetMaterial()

void AST_AudioControlMatLEDBase::SetMaterial ( UMaterialInterface * NewMat)

Sets the material to be used for rendering LED visuals.

Parameters
NewMat- The new material to apply.

◆ SetResolution()

bool AST_AudioControlMatLEDBase::SetResolution ( FIntPoint PrevisResolution)
protected

Sets the resolution for the LED preview visualization.

Parameters
PrevisResolution- Desired preview resolution.
Returns
True if successful.

◆ SetupBuffers()

bool AST_AudioControlMatLEDBase::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 successful.

◆ Tick()

void AST_AudioControlMatLEDBase::Tick ( float DeltaTime)
overrideprotectedvirtual

Called every frame.

Reimplemented from AST_AudioControlBase.

Reimplemented in AST_DMXMatLED, AST_OSCMatLED, and AST_SocketMatLED.

Member Data Documentation

◆ bRegistered

bool AST_AudioControlMatLEDBase::bRegistered = false
protected

Whether the LED buffers have been registered.

◆ LEDColourByteArray

TArray<uint8> AST_AudioControlMatLEDBase::LEDColourByteArray
protected

Raw byte array representing LED color data.

◆ MappedLEDColours

TArray<FColor> AST_AudioControlMatLEDBase::MappedLEDColours
protected

Mapped LED colors after processing.

◆ PrevisLEDColours

TArray<FColor> AST_AudioControlMatLEDBase::PrevisLEDColours
protected

LED colors for preview visualization.

◆ RenderTarget

UTextureRenderTarget2D* AST_AudioControlMatLEDBase::RenderTarget = nullptr
protected

Render target texture used for rendering LED visualization.


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_AudioControlMatLEDBase.h
  • H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioVisualisation/Private/Control/Base/ST_AudioControlMatLEDBase.cpp