Navigation
API > API/Runtime > API/Runtime/AudioMixer > API/Runtime/AudioMixer/Generators
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAudioGenerator
- UAudioCapture
References
| Module | AudioMixer |
| Header | /Engine/Source/Runtime/AudioMixer/Classes/Generators/AudioGenerator.h |
| Include | #include "Generators/AudioGenerator.h" |
Syntax
class UAudioGenerator : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCriticalSection | CritSect | ||
| int32 | NumChannels | ||
| TMap< uint32, FOnAudioGenerate > | OnGeneratedMap | ||
| int32 | SampleRate |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FAudioGeneratorHandle | AddGeneratorDelegate
(
FOnAudioGenerate InFunction |
Adds a generator delegate. Returns a handle for the generator delegate, so it can be removed. | |
| int32 | Returns the number of channels of the generator. | ||
| int32 | Returns the sample rate of the generator. | ||
| void | Init
(
int32 InSampleRate, |
Called by derived classes to initialize the sample rate and num channels of the generator. | |
| void | OnGeneratedAudio
(
const float* InAudio, |
Called by derived classes when new audio is generated. | |
| void | RemoveGeneratorDelegate
(
FAudioGeneratorHandle InHandle |
Removes the given audio generator delegate handle. |