New directory tree, with preprocessor/ inside interpretor/.
[Faustine.git] / 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 (file)
index 0000000..37227f3
--- /dev/null
@@ -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