#include <ProcessPlugin.h>
Public Member Functions | |
ProcessPlugin () | |
The Class Constructor. | |
virtual | ~ProcessPlugin () |
The Class Destructor. | |
virtual int | getNumInputs ()=0 |
Return Number of Input Channels. | |
virtual int | getNumOutputs ()=0 |
Return Number of Output Channels. | |
virtual void | init (int samplingRate) |
Do proper Initialization of members and class instances. By default this initializes the Sampling Frequency. If a class instance depends on the sampling frequency, it should be initialize here. | |
virtual void | compute (int nframes, float **inputs, float **outputs)=0 |
Compute process. | |
Protected Attributes | |
int | fSamplingFreq |
Faust Data member, Sampling Rate. |
This class contains the same methods of the FAUST dsp class. A mydsp class can inherit from this class the same way it inherits from dsp. Subclass should implement all methods except init, which is optional for processing that are sampling rate dependent or that need specific initialization.
ProcessPlugin::ProcessPlugin | ( | ) | [inline] |
The Class Constructor.
virtual ProcessPlugin::~ProcessPlugin | ( | ) | [inline, virtual] |
The Class Destructor.
virtual int ProcessPlugin::getNumInputs | ( | ) | [pure virtual] |
virtual int ProcessPlugin::getNumOutputs | ( | ) | [pure virtual] |
virtual void ProcessPlugin::init | ( | int | samplingRate | ) | [inline, virtual] |
Do proper Initialization of members and class instances. By default this initializes the Sampling Frequency. If a class instance depends on the sampling frequency, it should be initialize here.
Reimplemented in NetKS.
virtual void ProcessPlugin::compute | ( | int | nframes, | |
float ** | inputs, | |||
float ** | outputs | |||
) | [pure virtual] |
int ProcessPlugin::fSamplingFreq [protected] |
Faust Data member, Sampling Rate.