Creates AudioGraph instances.
More...
#include <AudioGraphFactory.hpp>
Creates AudioGraph instances.
AudioGraphFactory class.
◆ addNodeFactory()
void switchboard::AudioGraphFactory::addNodeFactory |
( |
const std::shared_ptr< AudioNodeFactory > | nodeFactory | ) |
|
|
static |
Registers a node factory that can create audio nodes for the audio graph.
- Parameters
-
◆ parseJSON() [1/2]
AudioGraph * switchboard::AudioGraphFactory::parseJSON |
( |
const char * | config | ) |
|
|
static |
Parses a JSON audio graph config and returns the creates AudioGraph.
The returned audio graph instances need to be freed by the user of the AudioGraphFactory.
- Parameters
-
config | The JSON audio graph config. |
- Returns
- The created AudioGraph instance, or nullptr if the audio graph could not be created.
◆ parseJSON() [2/2]
AudioGraph * switchboard::AudioGraphFactory::parseJSON |
( |
const std::string & | config | ) |
|
|
static |
Parses a JSON audio graph config and returns the creates AudioGraph.
The returned audio graph instances need to be freed by the user of the AudioGraphFactory.
- Parameters
-
config | The JSON audio graph config. |
- Returns
- The created AudioGraph instance, or nullptr if the audio graph could not be created.