Switchboard SDK
|
A node that consumes audio and only has incoming connections. More...
#include <AudioSinkNode.hpp>
Public Member Functions | |
virtual bool | setNumberOfBuses (const uint numberOfBuses)=0 |
Sets number of buses. | |
virtual bool | setBusFormats (AudioBusFormatList &busFormats)=0 |
Sets bus formats. | |
virtual bool | consume (AudioBusList &buses)=0 |
Consumes audio data from 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 |
A node that consumes audio and only has incoming connections.
AudioSinkNode class.
|
pure virtual |
Consumes audio data from the given buses.
Should be overridden by subclasses.
buses | The buses that contain the audio data. |
Implemented in switchboard::AudioGraphOutputNode, switchboard::SingleBusAudioSinkNode, switchboard::DiscardNode, and switchboard::SubgraphSinkNode.
|
pure virtual |
Sets bus formats.
Should be overridden by subclasses.
busFormats | The bus formats to set. |
Implemented in switchboard::AudioGraphOutputNode, switchboard::SingleBusAudioSinkNode, switchboard::DiscardNode, and switchboard::SubgraphSinkNode.
|
pure virtual |
Sets number of buses.
Should be overridden by subclasses.
numberOfBuses | The number of buses to set. |
Implemented in switchboard::AudioGraphOutputNode, switchboard::SingleBusAudioSinkNode, switchboard::DiscardNode, and switchboard::SubgraphSinkNode.