Navigation
API > API/Runtime > API/Runtime/AudioAnalyzer
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAudioAnalyzer
- ULoudnessAnalyzer
- UMeterAnalyzer
- USynesthesiaSpectrumAnalyzer
References
| Module | AudioAnalyzer |
| Header | /Engine/Source/Runtime/AudioAnalyzer/Classes/AudioAnalyzer.h |
| Include | #include "AudioAnalyzer.h" |
Syntax
class UAudioAnalyzer : public UObject
Remarks
UAudioAnalyzer performs analysis on an audio bus using specific settings and exposes the results via blueprints.
Subclasses of UAudioAnalyzer must implement GetAnalyzerFactoryName() to associate the UAudioAnalyzer asset with an IAudioAnalyzerFactory implementation.
To support blueprint access, subclasses can implement UFUNCTIONs to expose the data returned by GetResult().
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UAudioBus > | AudioBus | The UAudioBus which is analyzed in real-time. | |
| int32 | NumFramesPerBufferToAnalyze | How many frames of audio to wait before analyzing the audio. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Function to broadcast results. | ||
| FName | Subclasses must override this method in order to inform this object which AnalyzerFactory to use for analysis | ||
| TUniquePtr< ResultType > | GetResults () |
||
| TUniquePtr< Audio::IAnalyzerSettings > | GetSettings
(
const int32 InSampleRate, |
Implementations can override this method to create settings objects specific for their analyzer. | |
| void | StartAnalyzing
(
const UObject* WorldContextObject, |
Starts analyzing audio from the given audio bus. | |
| void | StartAnalyzing
(
UWorld* InWorld, |
Starts analyzing using the given world. | |
| void | StopAnalyzing
(
const UObject* WorldContextObject |
Stops analyzing audio. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Typedefs
| Name | Description |
|---|---|
| FResultId | ID to keep track of results. |
| FResultSharedPtr | Thread safe shared point to result object. |