VJ Master 1.0
Real-time audio analysis and visualisation.
Loading...
Searching...
No Matches
ST_AudioProcessingInterface.h
1// Copyright (c) 2025 Aaron Trotter (ShaderTech). All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Interface.h"
7#include "ST_AudioProcessingInterface.generated.h"
8
16UINTERFACE(BlueprintType)
17class ST_AUDIOPROCESSING_API UST_AudioProcessingInterface : public UInterface
18{
19 GENERATED_BODY()
20};
21
29class ST_AUDIOPROCESSING_API IST_AudioProcessingInterface : public IInterface
30{
31 GENERATED_BODY()
32
33public:
42 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
43 void OnAudioIOStatusChanged(bool bIsActive, FIntPoint IOId);
44
53 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
54 void OnRawMagnitudesReady(const TArray<float>& RawMagnitudes, FIntPoint IOId);
55
65 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
66 void OnFrequencyBandsReady(const TArray<float>& FrequencyBands, int32 NumFrequencyBands, FIntPoint IOId);
67
76 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
77 void OnAmplitudesReady(const TArray<float>& Amplitudes, FIntPoint IOId);
78
87 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
88 void OnPitchesReady(const TArray<float>& Pitches, FIntPoint IOId);
89
99 UFUNCTION(BlueprintNativeEvent, Category = "ShaderTech|AudioProcessing")
100 void OnBeatDetected(const TArray<float>& Beats, const TArray<bool>& BeatDetectedForChannel, FIntPoint IOId);
101};
Interface for handling audio processing events.
Definition ST_AudioProcessingInterface.h:30
void OnAudioIOStatusChanged(bool bIsActive, FIntPoint IOId)
Event triggered when the status of an audio I/O device changes.
void OnBeatDetected(const TArray< float > &Beats, const TArray< bool > &BeatDetectedForChannel, FIntPoint IOId)
Event triggered when a beat is detected in the audio data for an I/O device.
void OnFrequencyBandsReady(const TArray< float > &FrequencyBands, int32 NumFrequencyBands, FIntPoint IOId)
Event triggered when frequency band data is ready for an audio I/O device.
void OnAmplitudesReady(const TArray< float > &Amplitudes, FIntPoint IOId)
Event triggered when amplitude data is ready for an audio I/O device.
void OnPitchesReady(const TArray< float > &Pitches, FIntPoint IOId)
Event triggered when pitch data is ready for an audio I/O device.
void OnRawMagnitudesReady(const TArray< float > &RawMagnitudes, FIntPoint IOId)
Event triggered when raw magnitude data is ready for an audio I/O device.
Interface for audio processing systems, allowing handling of various audio-related events.
Definition ST_AudioProcessingInterface.h:18