-
Notifications
You must be signed in to change notification settings - Fork 7
/
dfxplugindef-template.h
62 lines (47 loc) · 2.1 KB
/
dfxplugindef-template.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
/*------------------------------------------------------------------------
Destroy FX Library is a collection of foundation code
for creating audio processing plug-ins.
Copyright (C) 2002-2022 Sophia Poirier and Tom Murphy 7
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/
------------------------------------------------------------------------*/
#ifndef _DFXPLUGIN_DEF_TEMPLATE_H
#define _DFXPLUGIN_DEF_TEMPLATE_H
#include "dfxplugin-prefix.h"
// required
#define PLUGIN_NAME_STRING ""
// should be unique among all plugins (!)
// Official Destroy FX plugins use 'D' 'F' for the first two characters
#define PLUGIN_ID FOURCC('A', 'B', 'C', 'D')
#define PLUGIN_VERSION_MAJOR 1
#define PLUGIN_VERSION_MINOR 0
#define PLUGIN_VERSION_BUGFIX 0
#define PLUGIN_CLASS_NAME CoolPlugin
// required if PLUGIN_NAME_STRING contains whitespace
#define PLUGIN_BUNDLE_IDENTIFIER DESTROYFX_BUNDLE_ID_PREFIX "" DFX_BUNDLE_ID_SUFFIX
#define PLUGIN_COPYRIGHT_YEAR_STRING "20XX"
// Define to 1 or 0
#define TARGET_PLUGIN_USES_MIDI 0
#define TARGET_PLUGIN_IS_INSTRUMENT 0
#define TARGET_PLUGIN_USES_DSPCORE 0
#define TARGET_PLUGIN_HAS_GUI 0
// only necessary for VST
// #define VST_NUM_INPUTS 2
// #define VST_NUM_OUTPUTS 2
// or you can define just this if numinputs and numoutputs match
#define VST_NUM_CHANNELS 2
#if TARGET_PLUGIN_HAS_GUI
// required if providing a GUI
#define PLUGIN_BACKGROUND_IMAGE_FILENAME ".png"
#endif
#endif