-
Notifications
You must be signed in to change notification settings - Fork 7
/
dfxplugin-stub-def.h
82 lines (63 loc) · 2.85 KB
/
dfxplugin-stub-def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*------------------------------------------------------------------------
Destroy FX Library is a collection of foundation code
for creating audio processing plug-ins.
Copyright (C) 2002-2021 Sophia Poirier
This file is part of the Destroy FX Library (version 1.0).
Destroy FX Library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Destroy FX Library 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. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Destroy FX Library. If not, see <http:https://www.gnu.org/licenses/>.
To contact the author, use the contact form at http:https://destroyfx.org/
This file includes many important #defines for making a DfxPlugin.
Make this a "prefix" or "entry" header file of your project,
or somehow define this stuff another way (in compiler settings, or whatever).
------------------------------------------------------------------------*/
#ifndef _DFXPLUGIN_STUB_DEF_H
#define _DFXPLUGIN_STUB_DEF_H
#include "dfxplugin-prefix.h"
// the name of the plugin
#define PLUGIN_NAME_STRING "DfxPlugin stub"
// a four-byte ID for the plugin
#define PLUGIN_ID FOURCC('s', 't', 'u', 'b')
// the version
#define PLUGIN_VERSION_MAJOR 1
#define PLUGIN_VERSION_MINOR 0
#define PLUGIN_VERSION_BUGFIX 0
#define PLUGIN_VERSION_STRING "1.0.0"
// your subclass of DfxPlugin
#define PLUGIN_CLASS_NAME DfxStub
// Audio Unit entry point: plugin class name appended with "Entry"
#define PLUGIN_ENTRY_POINT "DfxStubEntry"
// macOS bundle identifier
#define PLUGIN_BUNDLE_IDENTIFIER DESTROYFX_BUNDLE_ID_PREFIX "DfxStub" DFX_BUNDLE_ID_SUFFIX
// copyright year(s) published in versioning metadata
#define PLUGIN_COPYRIGHT_YEAR_STRING "2002-2021"
// 0 or 1
#define TARGET_PLUGIN_USES_MIDI 1
// 0 or 1 (1 implied 1 is also true for TARGET_PLUGIN_USES_MIDI)
#define TARGET_PLUGIN_IS_INSTRUMENT 0
// 0 or 1 (whether or not the plugin uses a DSP processing core class, 1-in/1-out)
#define TARGET_PLUGIN_USES_DSPCORE 0
// 0 or 1 (whether or not the plugin has its own custom graphical interface)
#define TARGET_PLUGIN_HAS_GUI 1
#if TARGET_PLUGIN_HAS_GUI
// the file name of the GUI's background image
#define PLUGIN_BACKGROUND_IMAGE_FILENAME "dfxplugin-stub-background.png"
#endif
// only define one of these for a given build, not both
#define TARGET_API_AUDIOUNIT
#define TARGET_API_VST
#ifdef TARGET_API_VST
// the number of ins and outs in VST2 must be fixed
#define VST_NUM_INPUTS 2
#define VST_NUM_OUTPUTS 2
// or if they're both equal, simply this will do:
// #define VST_NUM_CHANNELS 2
#endif
#endif