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

#include <audio/node/pullnode.h>

Public Member Functions

 PullNode (NodeManager &nodeManager, bool rootProcess=true)
 
 ~PullNode () override final
 
- 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 pull its input without doing anything with it, just to make sure it's processed. This is handy in order to simulate multispeaker applications processing load properly without needing the actual outputs. The PullNode is a root node that will be directly processed by the node manager.

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

Constructor & Destructor Documentation

◆ PullNode()

PullNode ( NodeManager nodeManager,
bool  rootProcess = true 
)
Parameters
nodeManagerThe node manager this node runs on
rootProcesstrue if the node registered as root process and processed from creation.

◆ ~PullNode()

~PullNode ( )
finaloverride

Member Data Documentation

◆ audioInput

InputPin audioInput = {this}

The processing chain connected to this input will be processed even when not being used for anything.