90c9fbc523d8b6aa1de1d328983e3e1ebe7ab97c
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / architecture / windowsdll.cpp
1 /************************************************************************
2
3 IMPORTANT NOTE : this file contains two clearly delimited sections :
4 the ARCHITECTURE section (in two parts) and the USER section. Each section
5 is governed by its own copyright and license. Please check individually
6 each section for license and copyright information.
7 *************************************************************************/
8
9 /*******************BEGIN ARCHITECTURE SECTION (part 1/2)****************/
10
11 /************************************************************************
12 FAUST Architecture File
13 Copyright (C) 2003-2011 GRAME, Centre National de Creation Musicale
14 ---------------------------------------------------------------------
15 This Architecture section is free software; you can redistribute it
16 and/or modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation; either version 3 of
18 the License, or (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; If not, see <http://www.gnu.org/licenses/>.
27
28 EXCEPTION : As a special exception, you may create a larger work
29 that contains this FAUST architecture section and distribute
30 that work under terms of your choice, so long as this FAUST
31 architecture section is not modified.
32
33
34 ************************************************************************
35 ************************************************************************/
36
37 #include <stdlib.h>
38 #include <stdio.h>
39 #include <string.h>
40 #include <limits.h>
41 #include <math.h>
42 #include <errno.h>
43 #include <time.h>
44
45 #include <map>
46 #include <list>
47
48 using namespace std;
49
50 #include "gui/GUI.h"
51 #include "misc.h"
52 #include "audio/dsp.h"
53
54 /********************END ARCHITECTURE SECTION (part 1/2)****************/
55
56 /**************************BEGIN USER SECTION **************************/
57
58 <<includeclass>>
59
60 /***************************END USER SECTION ***************************/
61
62 /*******************BEGIN ARCHITECTURE SECTION (part 2/2)***************/
63
64 #define EXPORT __declspec(dllexport)
65
66 extern "C" EXPORT dsp* newDsp() { return new mydsp(); }
67 extern "C" EXPORT void EXPORT deleteDsp(dsp* self) { delete self; }
68
69 extern "C" EXPORT int getNumInputs(dsp* self) { return self->getNumInputs(); }
70 extern "C" EXPORT int getNumOutputs(dsp* self) { return self->getNumOutputs(); }
71 extern "C" EXPORT void buildUserInterface(dsp* self,UI* interface) { self->buildUserInterface(interface); }
72 extern "C" EXPORT void init(dsp* self, int freq) { self->init(freq); }
73 extern "C" EXPORT void compute(dsp* self, int len, float** inputs, float** outputs) { self->compute(len, inputs, outputs); }
74
75 /***END ARCHITECTURE SECTION (part 2/2)****************/
76
77
78