Represents a node in the audio graph.
More...
#include <AudioNode.hpp>
|
| AudioNode () |
| AudioNode constructor.
|
|
virtual | ~AudioNode ()=default |
| AudioNode virtual destructor.
|
|
const std::string & | getType () const |
| Gets the type of the audio node.
|
|
virtual const std::string | getDisplayName () const |
| Gets the display name of the audio node.
|
|
virtual std::vector< std::unique_ptr< Parameter > > & | getParameters () |
| Gets the parameters of the audio node.
|
|
virtual Parameter * | getParameter (const std::string &name) |
| Gets the parameter with the given name.
|
|
|
std::string | name |
| The name of the audio node.
|
|
|
std::string | type |
|
std::vector< std::unique_ptr< Parameter > > | parameters |
|
Represents a node in the audio graph.
AudioNode class.
◆ getDisplayName()
const std::string switchboard::AudioNode::getDisplayName |
( |
| ) |
const |
|
virtual |
Gets the display name of the audio node.
By default the display name follows this format: name (type)
- Returns
- The display name of the node.
◆ getParameter()
Parameter * switchboard::AudioNode::getParameter |
( |
const std::string & | name | ) |
|
|
virtual |
Gets the parameter with the given name.
- Parameters
-
name | The name of the parameter. |
- Returns
- Returns a pointer to the parameter, nullptr if not found.
◆ getParameters()
std::vector< std::unique_ptr< Parameter > > & switchboard::AudioNode::getParameters |
( |
| ) |
|
|
virtual |
Gets the parameters of the audio node.
- Returns
- A list of parameters that belong to the audio node.
◆ getType()
const std::string & switchboard::AudioNode::getType |
( |
| ) |
const |
Gets the type of the audio node.
- Returns
- The type of the audio node.