#include <audio/core/process.h>
Public Member Functions | |
Process (NodeManager &nodeManager) | |
Process (ParentProcess &parent) | |
Process (const Process &)=delete | |
Process & | operator= (const Process &)=delete |
virtual | ~Process () |
void | update () |
NodeManager & | getNodeManager () const |
int | getBufferSize () const |
float | getSampleRate () const |
DiscreteTimeValue | getSampleTime () const |
Protected Member Functions | |
virtual void | sampleRateChanged (float sampleRate) |
virtual void | bufferSizeChanged (int bufferSize) |
bool | isRegisteredWithNodeManager () const |
A process that is executed once on every audio callback on the audio thread. Processes can be child processes to parent processes that run their child processes. Base class to Node.
Process | ( | NodeManager & | nodeManager | ) |
Constructor
nodeManager | the node manager this process runs on. |
Process | ( | ParentProcess & | parent | ) |
Constructor that takes a parent process.
|
virtual |
|
protectedvirtual |
Called whenever the buffersize that the node system runs on changes. Can be overwriten to respond to changes.
bufferSize | the new buffersize |
int getBufferSize | ( | ) | const |
Returns the internal buffersize of the node system that this process belongs to. Output is being pulled through the graph buffers of this size at a time. Not to be confused with the buffersize that the audio callback runs on!
NodeManager& getNodeManager | ( | ) | const |
float getSampleRate | ( | ) | const |
Returns the sample rate that the node system runs on
DiscreteTimeValue getSampleTime | ( | ) | const |
Returns the current time in samples
|
protected |
|
protectedvirtual |
Called whenever the sample rate that the node system runs on changes. Can be overwritten to respond to changes
sampleRate | then new sample rate |
Reimplemented in LevelMeterNode.
void update | ( | ) |