ofxPDSP
pdsp::OutputNode Class Reference

Output of a Unit, contains a buffer of rendered floats and has a variable state flag. More...

#include <BasicNodes.h>

Inheritance diagram for pdsp::OutputNode:
pdsp::Preparable pdsp::ValueNode

Public Member Functions

 OutputNode (int oversample)
 
 OutputNode (const OutputNode &other)
 
OutputNodeoperator= (const OutputNode &other)
 
void connect (InputNode &inputNode)
 patch this OutputNode to an InputNode More...
 
void disconnect (InputNode &inputNode)
 disconnect this OutputNode from an InputNode More...
 
void disconnectAll ()
 disconnect this OutputNode from all the inputs to witch it is connected
 
virtual float getCRValue () const
 returns the first value of the buffer, to use if the state is "Changed"
 
const float * getBuffer () const
 get the OutputNode buffer
 
const int getState () const
 get the OutputNode state
 
const std::vector< InputNode * > & getOutputs () const
 get the outputs vector
 
bool isConnected ()
 returns true if this OutputNode is connected to at least an InputNode
 
bool notConnected ()
 returns true if this OutputNode is not connected to any InputNode
 
const int getOversampleLevel () const
 returns the oversample level of this OutputNode
 
OutputNodesetMultiplyOnConnection (float multiplier)
 this is basically what the * operator does when used with a Patchable or OutputNode
 

Protected Attributes

float * buffer
 
int state
 
Unitparent
 
int oversampleLevel
 

Friends

class InputNode
 
class Unit
 
class OutputData
 
class PatchNode
 
class Switch
 
class ExternalInput
 
class Processor
 
class UpSampler
 
class DownSampler
 
class Patchable
 

Additional Inherited Members

- Static Public Member Functions inherited from pdsp::Preparable
static double getGlobalSampleRate ()
 

Detailed Description

Output of a Unit, contains a buffer of rendered floats and has a variable state flag.

OutputNode is the output point of a Unit. It has an internal buffer of floats and a state that can be "Changed" or "AudioRate".

Member Function Documentation

◆ connect()

void pdsp::OutputNode::connect ( InputNode inputNode)

patch this OutputNode to an InputNode

Parameters
[in]nodeInputNode to patch

◆ disconnect()

void pdsp::OutputNode::disconnect ( InputNode inputNode)

disconnect this OutputNode from an InputNode

Parameters
[in]nodeInputNode to disconnect

The documentation for this class was generated from the following files: