#include <audio/core/audiopin.h>
Public Member Functions | |
InputPin (Node *node) | |
virtual | ~InputPin () override |
SampleBuffer * | pull () |
void | connect (OutputPin &input) override |
void | disconnect (OutputPin &input) override |
void | disconnectAll () override |
bool | isConnected () const override |
Public Member Functions inherited from InputPinBase | |
InputPinBase (Node *node) | |
virtual | ~InputPinBase () |
void | enqueueConnect (OutputPin &pin) |
void | enqueueDisconnect (OutputPin &pin) |
Node & | getNode () |
An input pin is used by audio node to connect it to other nodes. The pin connects one channel (mono) audio.
|
overridevirtual |
Destructor. If the input is connected on destruction the connection will be broken first.
|
overridevirtual |
Connects another node's OutputPin to this input. If either this ipnut or the connected output is already connected it will be disconnected first.
input | The output that this InputPin will be connected to. |
Implements InputPinBase.
|
overridevirtual |
Disconnects this input from the specified output, if this connections exists.
Implements InputPinBase.
|
overridevirtual |
If connected, disconnects this pin.
Implements InputPinBase.
|
overridevirtual |
Implements InputPinBase.
SampleBuffer* pull | ( | ) |
This method can be used by the node to pull one sample buffer output from the connected audio output.