Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
FAudioBuffer is the default buffer for passing audio data between nodes. It should not be resized. It is compatible with functions accepting const references to FAlignedFloatBuffer (const FAlignedFloatBuffer&) arguments via an implicit conversion operator which exposes the underlying FAlignedFloatBuffer container.
| Name | FAudioBuffer |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundAudioBuffer.h |
| Include Path | #include "MetasoundAudioBuffer.h" |
Syntax
class FAudioBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAudioBuffer () |
MetasoundAudioBuffer.h | ||
FAudioBuffer
(
int32 InNumSamples |
Create an FAudioBuffer with a specific number of samples. | MetasoundAudioBuffer.h | |
FAudioBuffer
(
const FOperatorSettings& InSettings |
This is the constructor used by the frontend. | MetasoundAudioBuffer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buffer | Audio::FAlignedFloatBuffer | MetasoundAudioBuffer.h | ||
| InitialNum | int32 | MetasoundAudioBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const float * GetData () |
Return a pointer to the audio float data. | MetasoundAudioBuffer.h | |
float * GetData () |
Return a pointer to the audio float data. | MetasoundAudioBuffer.h | |
int32 Num() |
Return the number of samples in the audio buffer. | MetasoundAudioBuffer.h | |
void Zero() |
MetasoundAudioBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator Audio::FAlignedFloatBuffer &() |
Implicit conversion to Audio::FAlignedFloatBuffer | MetasoundAudioBuffer.h | |
operator const Audio::FAlignedFloatBuffer &() |
Implicit conversion to Audio::FAlignedFloatBuffer | MetasoundAudioBuffer.h |