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
| Alias | Description |
|---|---|
using FSampleLoader = std::function<bool(const std::string& path, std::vector<float>& outMono, uint32_t& outRate)> |
Public functions
| Returns | Name | Description |
|---|---|---|
const char* | NodeTypeToString | |
EMetaSoundNodeType | NodeTypeFromString | |
std::vector<FMetaSoundPort> | InputPorts | |
std::vector<FMetaSoundPort> | OutputPorts | |
bool | ProducesAudio | |
std::vector<FMetaSoundNode>& | Nodes | Editing. |
const std::vector<FMetaSoundNode>& | Nodes | |
std::vector<FMetaSoundConnection>& | Connections | |
const std::vector<FMetaSoundConnection>& | Connections | |
FMetaSoundNode* | FindNode | |
const FMetaSoundNode* | FindNode | |
std::string | AddNode | |
void | RemoveNode | |
bool | Connect | |
void | Disconnect | |
std::string | EnsureOutput | |
std::string | OutputNodeId | |
void | Clear | |
void | RebuildNextId | |
void | SetSampleLoader | Runtime. |
void | SetWaveData | |
bool | Prepare | |
void | Reset | |
void | Process | |
void | SetInput | Live parameter drive from gameplay: name matches a GraphInput node's Name. |
void | Trigger | |
bool | HasInput | |
const std::vector<float>& | Output | |
uint32_t | GetSampleRate | |
uint32_t | GetBlockSize | |
bool | IsPrepared |
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() constConnections
C++
std::vector<FMetaSoundConnection>& Connections()Connections
C++
const std::vector<FMetaSoundConnection>& Connections() constFindNode
C++
FMetaSoundNode* FindNode(const std::string& id)FindNode
C++
const FMetaSoundNode* FindNode(const std::string& id) constAddNode
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() constClear
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) constOutput
C++
const std::vector<float>& Output() constGetSampleRate
C++
uint32_t GetSampleRate() constGetBlockSize
C++
uint32_t GetBlockSize() constIsPrepared
C++
bool IsPrepared() constGenerated from Audio/MetaSoundGraph.h via audio.json · Oct 26, 2026Version 1.0.0