Manages a graph of AudioNode instances.
More...
#include <AudioGraph.hpp>
|
const uint | maxNumberOfChannels |
| Maximum number of channels that is supported by the audio graph.
|
|
const uint | maxNumberOfFrames |
| Maximum number of frames that is supported by the audio graph.
|
|
Manages a graph of AudioNode instances.
AudioGraph class.
This class can be used to easily put together complicated audio pipelines by adding and then connecting AudioNode instances together.
◆ AudioGraph()
switchboard::AudioGraph::AudioGraph |
( |
const uint |
maxNumberOfChannels = constants::STEREO , |
|
|
const uint |
maxNumberOfFrames = constants::MAX_NUMBER_OF_FRAMES |
|
) |
| |
Creates an AudioGraph.
- Parameters
-
maxNumberOfChannels | Maximum number of channels that is supported by the audio graph. |
maxNumberOfFrames | Maximum number of frames that is supported by the audio graph. |
◆ addNode()
bool switchboard::AudioGraph::addNode |
( |
AudioNode & |
audioNode | ) |
|
Adds a node to the audio graph.
- Parameters
-
audioNode | The node to be added. |
- Returns
- True if the node was successfully added, false otherwise.
◆ connect() [1/4]
Connects a processor node to another processor node.
- Parameters
-
srcNode | The source processor node. |
dstNode | The destination processor node. |
- Returns
- True if the nodes were successfully connected, false otherwise.
◆ connect() [2/4]
Connects a processor node to a sink node.
- Parameters
-
srcNode | The processor node. |
dstNode | The sink node. |
- Returns
- True if the nodes were successfully connected, false otherwise.
◆ connect() [3/4]
Connects a source node to a processor node.
- Parameters
-
srcNode | The source node. |
dstNode | The processor node. |
- Returns
- True if the nodes were successfully connected, false otherwise.
◆ connect() [4/4]
Connects a source node to a sink node.
- Parameters
-
srcNode | The source node. |
dstNode | The sink node. |
- Returns
- True if the nodes were successfully connected, false otherwise.
◆ getInputNode()
Returns the input node of the audio graph.
- Returns
- The input node.
◆ getOutputNode()
const AudioSinkNode & switchboard::AudioGraph::getOutputNode |
( |
| ) |
const |
Returns the output node of the audio graph.
- Returns
- The output node.
◆ process()
The real-time audio process function of the audio graph.
- Parameters
-
inAudioBuses | The input audio buses. |
outAudioBuses | The output audio buses. |
- Returns
- True if the process call was successful, false otherwise.
◆ removeNode()
bool switchboard::AudioGraph::removeNode |
( |
AudioNode & |
audioNode | ) |
|
Removes a node from the audio graph.
- Parameters
-
audioNode | The node to be removed. |
- Returns
- True if the node was successfully removed, false otherwise.
◆ start()
WASM bool switchboard::AudioGraph::start |
( |
| ) |
|
Starts the audio graph.
- Returns
- True if the audio graph was started successfully, false otherwise.
The documentation for this class was generated from the following files:
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioGraph.hpp
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioGraph.cpp