class

FMetaSoundGraph

A DSP synthesis graph: oscillators, envelopes, filters and math nodes wired by typed (audio-rate buffer / control-rate scalar) connections. Prepare() topo- sorts the graph and allocates per-node block buffers; Process(blockSize) pulls one block through the whole graph into the mono Output() buffer. Unlike a SoundCue this generates audio without any source sample (WavePlayer excepted).

Module
Audio
Header
#include "Audio/MetaSoundGraph.h"
Namespace
Mowo

Type aliases

AliasDescription
using FSampleLoader = std::function<bool(const std::string& path, std::vector<float>& outMono, uint32_t& outRate)>

Public functions

ReturnsNameDescription
const char*NodeTypeToString
EMetaSoundNodeTypeNodeTypeFromString
std::vector<FMetaSoundPort>InputPorts
std::vector<FMetaSoundPort>OutputPorts
boolProducesAudio
std::vector<FMetaSoundNode>&NodesEditing.
const std::vector<FMetaSoundNode>&Nodes
std::vector<FMetaSoundConnection>&Connections
const std::vector<FMetaSoundConnection>&Connections
FMetaSoundNode*FindNode
const FMetaSoundNode*FindNode
std::stringAddNode
voidRemoveNode
boolConnect
voidDisconnect
std::stringEnsureOutput
std::stringOutputNodeId
voidClear
voidRebuildNextId
voidSetSampleLoaderRuntime.
voidSetWaveData
boolPrepare
voidReset
voidProcess
voidSetInputLive parameter drive from gameplay: name matches a GraphInput node's Name.
voidTrigger
boolHasInput
const std::vector<float>&Output
uint32_tGetSampleRate
uint32_tGetBlockSize
boolIsPrepared

Function details

NodeTypeToString

C++
static const char* NodeTypeToString(EMetaSoundNodeType type)

NodeTypeFromString

C++
static EMetaSoundNodeType NodeTypeFromString(const std::string& text)

InputPorts

C++
static std::vector<FMetaSoundPort> InputPorts(const FMetaSoundNode& node)

OutputPorts

C++
static std::vector<FMetaSoundPort> OutputPorts(EMetaSoundNodeType type)

ProducesAudio

C++
static bool ProducesAudio(EMetaSoundNodeType type)

Nodes

C++
std::vector<FMetaSoundNode>& Nodes()

Editing.

Nodes

C++
const std::vector<FMetaSoundNode>& Nodes() const

Connections

C++
std::vector<FMetaSoundConnection>& Connections()

Connections

C++
const std::vector<FMetaSoundConnection>& Connections() const

FindNode

C++
FMetaSoundNode* FindNode(const std::string& id)

FindNode

C++
const FMetaSoundNode* FindNode(const std::string& id) const

AddNode

C++
std::string AddNode(EMetaSoundNodeType type, float x, float y)

RemoveNode

C++
void RemoveNode(const std::string& id)

Connect

C++
bool Connect(const std::string& fromNode, const std::string& fromPort, const std::string& toNode, const std::string& toPort)

Disconnect

C++
void Disconnect(const std::string& fromNode, const std::string& fromPort, const std::string& toNode, const std::string& toPort)

EnsureOutput

C++
std::string EnsureOutput()

OutputNodeId

C++
std::string OutputNodeId() const

Clear

C++
void Clear()

RebuildNextId

C++
void RebuildNextId()

SetSampleLoader

C++
static void SetSampleLoader(FSampleLoader loader)

Runtime. Install a loader so WavePlayer nodes can pull sample PCM by path; or inject PCM directly with SetWaveData for headless use.

SetWaveData

C++
void SetWaveData(const std::string& nodeId, std::vector<float> monoPcm, uint32_t rate)

Prepare

C++
bool Prepare(uint32_t sampleRate, uint32_t blockSize)

Reset

C++
void Reset()

Process

C++
void Process(uint32_t blockSize)

SetInput

C++
void SetInput(const std::string& name, float value)

Live parameter drive from gameplay: name matches a GraphInput node's Name.

Trigger

C++
void Trigger(const std::string& name)

HasInput

C++
bool HasInput(const std::string& name) const

Output

C++
const std::vector<float>& Output() const

GetSampleRate

C++
uint32_t GetSampleRate() const

GetBlockSize

C++
uint32_t GetBlockSize() const

IsPrepared

C++
bool IsPrepared() const
Generated from Audio/MetaSoundGraph.h via audio.json · Oct 26, 2026Version 1.0.0