NAP
Public Member Functions | Public Attributes | List of all members
OutputNode Class Referencefinal

#include <audio/node/outputnode.h>

Public Member Functions

 OutputNode (NodeManager &nodeManager, bool rootProcess=true)
 
 ~OutputNode () override final
 
void setOutputChannel (int outputChannel)
 
int getOutputChannel () const
 
- Public Member Functions inherited from Node
 Node (NodeManager &manager)
 
const std::set< OutputPin * > & getOutputs () const
 
const std::set< InputPinBase * > & getInputs () const
 
- Public Member Functions inherited from Process
 Process (NodeManager &nodeManager)
 
 Process (ParentProcess &parent)
 
 Process (const Process &)=delete
 
Processoperator= (const Process &)=delete
 
virtual ~Process ()
 
void update ()
 
NodeManagergetNodeManager () const
 
int getBufferSize () const
 
float getSampleRate () const
 
DiscreteTimeValue getSampleTime () const
 

Public Attributes

InputPin audioInput = {this}
 

Additional Inherited Members

- Protected Member Functions inherited from Node
SampleBuffergetOutputBuffer (OutputPin &output)
 
- Protected Member Functions inherited from Process
virtual void sampleRateChanged (float sampleRate)
 
virtual void bufferSizeChanged (int bufferSize)
 
bool isRegisteredWithNodeManager () const
 

Description

Node to provide audio output for the node manager's audio processing, typically sent to an audio interface. The OutputNode is a root node that will be directly processed by the node manager.

Inheritance diagram for OutputNode:
[legend]
Collaboration diagram for OutputNode:
[legend]

Constructor & Destructor Documentation

◆ OutputNode()

OutputNode ( NodeManager nodeManager,
bool  rootProcess = true 
)
Parameters
nodeManagerThe node manager
rootProcesstrue if the node is registered as root process and being processed from the moment of creation. This can cause glitches if the node tree and it's parameters are still being build.

◆ ~OutputNode()

~OutputNode ( )
finaloverride

Member Function Documentation

◆ getOutputChannel()

int getOutputChannel ( ) const
Returns
: the audio channel that this node's input will be played on by the node manager.

◆ setOutputChannel()

void setOutputChannel ( int  outputChannel)

Set the audio channel that this node's input will be played on by the node manager.

Parameters
outputChannelthe channel number

Member Data Documentation

◆ audioInput

InputPin audioInput = {this}

Through this input the node receives buffers of audio samples that will be presented to the node manager as output for its audio processing.