UOdinCloneEffect
Codec-Effect for the odin audio pipeline. The effect will invoke Callback function with a copy of samples buffer and if bound to the delegate, a clone of that buffer. Callback will be called on the GameThread by default.
- Header:
#include "OdinAudio/Effects/OdinCloneEffect.h" - Module:
Odin - Inherits from:
UOdinCustomEffect - Blueprint: Reflected (UCLASS) · Blueprint reference
Overview
Functions
| Name | Description |
|---|---|
Callback | Callback function on copy of samples in GameThread |
ConstructCloneEffect | Creates a Clone Effect that is not part of a pipeline yet; add it with Insert Custom Effect. |
Properties
| Name | Description |
|---|---|
SampleRate | Sample rate of the cloned audio. |
Stereo | True if the cloned audio is interleaved stereo. |
UserData |
Events
| Name | Description |
|---|---|
OnDispatchCloneCallbackBP | Raised on the game thread with a copy of the audio samples that passed through the effect. |
PostResponse | Declared for effects derived from the Clone Effect; the built-in effect does not raise it. |
Functions
Callback
Virtual · Const
Callback function on copy of samples in GameThread
| Parameter | Type | Description |
|---|---|---|
Buffer | Audio::TSampleBuffer<float> | the buffer copy of samples |
ConstructCloneEffect
Static · Blueprint: Construct Clone Effect
Creates a Clone Effect that is not part of a pipeline yet; add it with Insert Custom Effect. It copies the audio passing through it to On Dispatch Clone Callback on the game thread. Create Clone Effect on a pipeline does both steps.
| Parameter | Type | Description |
|---|---|---|
WorldContextObject | UObject* |
Returns UOdinCloneEffect*
Properties
SampleRate
Blueprint: Get/Set
Sample rate of the cloned audio.
Stereo
Blueprint: Get/Set
True if the cloned audio is interleaved stereo.
UserData
Events
OnDispatchCloneCallbackBP
Blueprint: On Dispatch Clone Callback
Raised on the game thread with a copy of the audio samples that passed through the effect.
Signature: FOdinDispatchCloneCallbackDelegate void(const TArray<float>& SampleData) (multicast)
PostResponse
Blueprint: Post Response (Clone Effect)
Declared for effects derived from the Clone Effect; the built-in effect does not raise it.
Signature: FOdinCloneEffectResponse void(FString response) (multicast)