X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/architecture/audio/dsp.h diff --git a/interpretor/preprocessor/faust-0.9.47mr3/architecture/audio/dsp.h b/interpretor/preprocessor/faust-0.9.47mr3/architecture/audio/dsp.h new file mode 100644 index 0000000..37227f3 --- /dev/null +++ b/interpretor/preprocessor/faust-0.9.47mr3/architecture/audio/dsp.h @@ -0,0 +1,33 @@ + +/****************************************************************************** +******************************************************************************* + + FAUST DSP + +******************************************************************************* +*******************************************************************************/ + +#ifndef __dsp__ +#define __dsp__ + +class UI; + +//---------------------------------------------------------------- +// signal processor definition +//---------------------------------------------------------------- + +class dsp { + protected: + int fSamplingFreq; + public: + dsp() {} + virtual ~dsp() {} + + virtual int getNumInputs() = 0; + virtual int getNumOutputs() = 0; + virtual void buildUserInterface(UI* interface) = 0; + virtual void init(int samplingRate) = 0; + virtual void compute(int len, float** inputs, float** outputs) = 0; +}; + +#endif