iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
IPlug
Extras
Faust
IPlugFaust_arch.cpp
1
/*
2
==============================================================================
3
4
This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.
5
6
See LICENSE.txt for more info.
7
8
==============================================================================
9
10
Faust architecture file for statically compiled iPlug2 Faust DSP classes.
11
The faust compiler replaces the default DSP class name with the one given with -cn, e.g.
12
13
faust -i -double -cn MySynth -a IPlugFaust_arch.cpp -o MySynth.hpp MySynth.dsp
14
15
generates a class Faust_MySynth that implements IPlugFaust and can be used with
16
FAUST_BLOCK(MySynth, ...) when FAUST_COMPILED is defined (see IPlugFaustGen.h).
17
The iPlug2 CMake Faust module (Scripts/cmake/Faust.cmake) does this for you.
18
*/
19
20
#include "
IPlugFaust.h
"
21
22
<<includeIntrinsic>>
23
24
/* BEGIN AUTO GENERATED BY THE FAUST COMPILER ... */
25
<<includeclass>>
26
/* ... END AUTO GENERATED BY THE FAUST COMPILER */
27
28
class
Faust_mydsp
:
public
iplug::IPlugFaust
29
{
30
public
:
32
Faust_mydsp
(
const
char
* name,
const
char
*
/* inputDSPFile */
=
nullptr
,
int
nVoices = 0,
const
char
*
/* libraryPath */
=
nullptr
)
33
: iplug::
IPlugFaust
(name, nVoices)
34
{
35
}
36
37
void
Init()
override
38
{
39
SetDSP(
new
mydsp());
40
}
41
};
42
43
#undef FAUSTCLASS
IPlugFaust.h
Faust_mydsp
Definition:
IPlugFaust_arch.cpp:29
Faust_mydsp::Faust_mydsp
Faust_mydsp(const char *name, const char *=nullptr, int nVoices=0, const char *=nullptr)
The arguments match FaustGen, so that FAUST_BLOCK can create either class.
Definition:
IPlugFaust_arch.cpp:32
IPlugFaust
IPlugFaust is the base class for hosting a Faust DSP inside an iPlug2 plug-in.
Definition:
IPlugFaust.h:106
Generated by
1.9.5