Navigation
API > API/Runtime > API/Runtime/AudioMixer
| Name | UAudioGenerator |
| Type | class |
| Header File | /Engine/Source/Runtime/AudioMixer/Classes/Generators/AudioGenerator.h |
| Include Path | #include "Generators/AudioGenerator.h" |
Syntax
UCLASS (ClassGroup=(Custom), Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UAudioGenerator : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UAudioGenerator
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAudioGenerator() |
Generators/AudioGenerator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UAudioGenerator() |
Generators/AudioGenerator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAudioGeneratorHandle AddGeneratorDelegate
(
FOnAudioGenerate InFunction |
Adds a generator delegate. Returns a handle for the generator delegate, so it can be removed. | Generators/AudioGenerator.h | |
int32 GetNumChannels() |
Returns the number of channels of the generator. | Generators/AudioGenerator.h | |
int32 GetSampleRate() |
Returns the sample rate of the generator. | Generators/AudioGenerator.h | |
void RemoveGeneratorDelegate
(
FAudioGeneratorHandle InHandle |
Removes the given audio generator delegate handle. | Generators/AudioGenerator.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init
(
int32 InSampleRate, |
Called by derived classes to initialize the sample rate and num channels of the generator. | Generators/AudioGenerator.h | |
void OnGeneratedAudio
(
const float* InAudio, |
Called by derived classes when new audio is generated. | Generators/AudioGenerator.h |