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

#include <audio/node/inputnode.h>

Public Member Functions

 InputNode (NodeManager &manager)
 
void setInputChannel (int inputChannel)
 
int getInputChannel () const
 
int getAvailableInputChannelCount ()
 
- 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

OutputPin audioOutput = {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

This node outputs the audio input that is received from the node system's external input, typically an audio interface. Input from channel inputChannel can be pulled from audioOutput plug.

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

Constructor & Destructor Documentation

◆ InputNode()

InputNode ( NodeManager manager)
Parameters
managerthe node manager that this node will be registered to and processed by. This node provides audio output for the manager.

Member Function Documentation

◆ getAvailableInputChannelCount()

int getAvailableInputChannelCount ( )
Returns
: the number of input channels currently present in the audio service to be selected using getInputChannel().

◆ getInputChannel()

int getInputChannel ( ) const
Returns
: the channel from which this node receives input.

◆ setInputChannel()

void setInputChannel ( int  inputChannel)

Sets the channel from which this node receives input. First check if the inputChannel is available using getAvailableInputChannelCount().

Member Data Documentation

◆ audioOutput

OutputPin audioOutput = {this}

This output will contain the samples received from the node system's external input.