Switchboard SDK
|
Represents the input node of the audio graph. More...
#include <AudioGraphInputNode.hpp>
Public Member Functions | |
AudioGraphInputNode () | |
Creates an AudioGraphInputNode instance. | |
void | setGraphInAudioBuses (const AudioBusList *graphInAudioBuses) |
Sets the source of the audio data. | |
uint | getNumberOfBuses () const |
Gets the number of buses that was set by the AudioGraph. | |
bool | setNumberOfBuses (const uint numberOfBuses) override |
Sets number of buses. | |
bool | setBusFormats (AudioBusFormatList &busFormats) override |
Sets bus formats. | |
bool | produce (AudioBusList &buses) override |
Produces audio data in the given buses. | |
Public Member Functions inherited from switchboard::AudioNode | |
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. | |
Additional Inherited Members | |
Public Attributes inherited from switchboard::AudioNode | |
std::string | name |
The name of the audio node. | |
Protected Attributes inherited from switchboard::AudioNode | |
std::string | type |
std::vector< std::unique_ptr< Parameter > > | parameters |
Represents the input node of the audio graph.
AudioGraphInputNode class.
uint switchboard::AudioGraphInputNode::getNumberOfBuses | ( | ) | const |
Gets the number of buses that was set by the AudioGraph.
|
overridevirtual |
Produces audio data in the given buses.
Should be overridden by subclasses.
buses | The buses that should be filled with audio data. |
Implements switchboard::AudioSourceNode.
|
overridevirtual |
Sets bus formats.
Should be overridden by subclasses.
busFormats | The bus formats to set. |
Implements switchboard::AudioSourceNode.
void switchboard::AudioGraphInputNode::setGraphInAudioBuses | ( | const AudioBusList * | graphInAudioBuses | ) |
Sets the source of the audio data.
The AudioGraph instance is responsible for calling this method.
graphInAudioBuses | An AudioBusList instance that has the audio input data. |
|
overridevirtual |
Sets number of buses.
Should be overridden by subclasses.
numberOfBuses | The number of buses to set. |
Implements switchboard::AudioSourceNode.