-
Notifications
You must be signed in to change notification settings - Fork 7
/
dfxplugin-audiounit.r
114 lines (79 loc) · 3.31 KB
/
dfxplugin-audiounit.r
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*------------------------------------------------------------------------
Destroy FX Library is a collection of foundation code
for creating audio processing plug-ins.
Copyright (C) 2002-2020 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 3 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/
Destroy FX is a sovereign entity comprised of Sophia Poirier and Tom Murphy 7.
This is our Audio Unit resource stuff.
------------------------------------------------------------------------*/
#include "AudioUnit.r"
#include "dfxdefines.h"
#if defined(PLUGIN_VERSION_MAJOR) && defined(PLUGIN_VERSION_MINOR) && defined(PLUGIN_VERSION_BUGFIX)
#define PLUGIN_VERSION_COMPOSITE ((PLUGIN_VERSION_MAJOR * 0x10000) | (PLUGIN_VERSION_MINOR * 0x100) | PLUGIN_VERSION_BUGFIX)
#else
#define PLUGIN_VERSION_COMPOSITE 0x00010000
#endif
//-----------------------------------------------------------------------------
// resources for the base plugin component
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
#ifdef PLUGIN_RES_ID
#define RES_ID PLUGIN_RES_ID
#else
#define RES_ID 3000
#endif
#if TARGET_PLUGIN_IS_INSTRUMENT
#define COMP_TYPE kAudioUnitType_MusicDevice
#elif TARGET_PLUGIN_USES_MIDI
#define COMP_TYPE kAudioUnitType_MusicEffect
#else
#define COMP_TYPE kAudioUnitType_Effect
#endif
#define COMP_SUBTYPE PLUGIN_ID
#define COMP_MANUF PLUGIN_CREATOR_ID
#define VERSION PLUGIN_VERSION_COMPOSITE
#define NAME PLUGIN_CREATOR_NAME_STRING": "PLUGIN_NAME_STRING
#ifdef PLUGIN_DESCRIPTION_STRING
#define DESCRIPTION PLUGIN_DESCRIPTION_STRING
#else
#define DESCRIPTION PLUGIN_CREATOR_NAME_STRING" "PLUGIN_NAME_STRING" = super destroy noise machine"
#endif
#define ENTRY_POINT PLUGIN_ENTRY_POINT
#include "AUResources.r"
#if TARGET_PLUGIN_HAS_GUI
//-----------------------------------------------------------------------------
// resources for the plugin editor component
#ifdef PLUGIN_EDITOR_RES_ID
#define RES_ID PLUGIN_EDITOR_RES_ID
#else
#define RES_ID 9000
#endif
#define COMP_TYPE kAudioUnitCarbonViewComponentType
#ifdef PLUGIN_EDITOR_ID
#define COMP_SUBTYPE PLUGIN_EDITOR_ID
#else
// if not defined, use the base plugin ID
#define COMP_SUBTYPE PLUGIN_ID
#endif
#define COMP_MANUF PLUGIN_CREATOR_ID
#define VERSION PLUGIN_VERSION_COMPOSITE
#define NAME PLUGIN_CREATOR_NAME_STRING": "PLUGIN_NAME_STRING" editor"
#ifdef PLUGIN_EDITOR_DESCRIPTION_STRING
#define DESCRIPTION PLUGIN_EDITOR_DESCRIPTION_STRING
#else
#define DESCRIPTION PLUGIN_CREATOR_NAME_STRING" "PLUGIN_NAME_STRING" picturesque yet functional interface"
#endif
#define ENTRY_POINT "DGVstGuiAUViewEntry"
#include "AUResources.r"
#endif
// TARGET_PLUGIN_HAS_GUI