X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/architecture/module.cpp diff --git a/interpretor/preprocessor/faust-0.9.47mr3/architecture/module.cpp b/interpretor/preprocessor/faust-0.9.47mr3/architecture/module.cpp new file mode 100644 index 0000000..28220dd --- /dev/null +++ b/interpretor/preprocessor/faust-0.9.47mr3/architecture/module.cpp @@ -0,0 +1,59 @@ +/************************************************************************ + ************************************************************************ + FAUST Architecture File + Copyright (C) 2003-2011 GRAME, Centre National de Creation Musicale + --------------------------------------------------------------------- + + This is sample code. This file is provided as an example of minimal + FAUST architecture file. Redistribution and use in source and binary + forms, with or without modification, in part or in full are permitted. + In particular you can create a derived work of this FAUST architecture + and distribute that work under terms of your choice. + + This sample code is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + ************************************************************************ + ************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "gui/GUI.h" +#include "misc.h" +#include "audio/dsp.h" + +using namespace std; + +/****************************************************************************** +******************************************************************************* + + VECTOR INTRINSICS + +******************************************************************************* +*******************************************************************************/ + +<> + +//---------------------------------------------------------------- +// Signal processor definition +//---------------------------------------------------------------- + +<> + +extern "C" dsp* newDsp() { return new mydsp(); } +extern "C" void deleteDsp(dsp* self) { delete self; } + +extern "C" int getNumInputs(dsp* self) { return self->getNumInputs(); } +extern "C" int getNumOutputs(dsp* self) { return self->getNumOutputs(); } +extern "C" void buildUserInterface(dsp* self,UI* interface) { self->buildUserInterface(interface); } +extern "C" void init(dsp* self, int freq) { self->init(freq); } +extern "C" void compute(dsp* self, int len, float** inputs, float** outputs) { self->compute(len, inputs, outputs); }