-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSymbiosis.r
163 lines (147 loc) · 4.4 KB
/
Symbiosis.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#define UseExtendedThingResource 1
#include <CoreServices/CoreServices.r>
#include <AudioUnit/AudioUnit.r>
/*********************************************************************************************************************/
/***** *****/
/***** Change the following definitions *****/
/***** *****/
/*********************************************************************************************************************/
// IMPORTANT : You should define i386_YES (for Intel 32-bit), x86_64_YES (for Intel 64-bit), ppc_YES (for PPC) or a
// combination of these (for "universal binary"). Otherwise the Audio Unit may not be found during scanning. To make
// this selection depend on the architectures settings in XCode, add the following definition for OTHER_REZFLAGS to the
// project configuration: -d ppc_$(ppc) -d i386_$(i386) -d x86_64_$(x86_64)
//
#ifndef ppc_YES
#ifndef i386_YES
#ifndef x86_64_YES
#define ppc_YES
#define i386_YES
#define x86_64_YES
#endif
#endif
#endif
// AudioUnit name in "company: product" format. This is typically the name that is presented to the user by the host
// (also, some hosts arranges their plug-in menus according to company name).
//
#define NAME "mycompany: myau"
// Description (anything you want).
//
#define DESCRIPTION "AU version of my bizarre VST converted with Symbiosis from NuEdge Development"
// Plug-in version aa.bb.cc in 0xaabbcc format. Remember to keep this up-to-date so that hosts will rescan plug-ins
// when they change.
//
#define VERSION 0x010000
// kAudioUnitType_Effect (no MIDI), kAudioUnitType_MusicDevice (MIDI, no input) or kAudioUnitType_MusicEffect (MIDI +
// input). See AudioUnit/AUComponent.r for all types.
//
#define TYPE kAudioUnitType_Effect
// Use the same unique ID you use for the VST.
//
#define SUBTYPE '????'
// Your unique manufacturer signature.
//
#define SIGNATURE '????'
// Set to 1 if your VST has a custom GUI (editor), set to 0 if you wish to use the standard editor.
//
#define CUSTOM_GUI 0
/*********************************************************************************************************************/
/***** *****/
/***** That's it, the rest you shouldn't need to touch. *****/
/***** *****/
/*********************************************************************************************************************/
resource 'STR ' (10002, "AUName", purgeable) { NAME };
resource 'STR ' (10003, "AUDescription", purgeable) { DESCRIPTION };
resource 'dlle' (10004, "AUEntryPoint") { "SymbiosisEntry" };
resource 'thng' (10000, NAME) {
TYPE,
SUBTYPE,
SIGNATURE,
0, 0,
0, 0,
'STR ', 10002,
'STR ', 10003,
0, 0,
VERSION,
componentHasMultiplePlatforms | componentDoAutoVersion,
0,
{
#ifndef ppc_YES
#ifndef i386_YES
#ifndef x86_64_YES
#printf("***** You must define ppc_YES, i386_YES, x86_64_YES or a combination of these, see comment in .r for more info. *****\n")
#error
#endif
#endif
#endif
#ifdef ppc_YES
0x10000000,
'dlle', 10004,
platformPowerPCNativeEntryPoint
#ifdef i386_YES
,
#endif
#endif
#ifdef i386_YES
0x10000000,
'dlle', 10004,
platformIA32NativeEntryPoint
#ifdef x86_64_YES
,
#endif
#endif
#ifdef x86_64_YES
0x10000000,
'dlle', 10004,
8
#endif
}
};
#if (CUSTOM_GUI)
resource 'STR ' (10005, "AUViewName", purgeable) { "Editor" };
resource 'STR ' (10006, "AUViewDescription", purgeable) { "Editor" }; // Description for AUView is same as name.
resource 'dlle' (10007, "AUViewEntryPoint") { "SymbiosisViewEntry" };
resource 'thng' (10001, "Editor") {
kAudioUnitCarbonViewComponentType,
SUBTYPE,
SIGNATURE,
0, 0,
0, 0,
'STR ', 10005,
'STR ', 10006,
0, 0,
VERSION,
componentHasMultiplePlatforms | componentDoAutoVersion,
0,
{
#ifndef ppc_YES
#ifndef i386_YES
#ifndef x86_64_YES
#printf("***** You must define ppc_YES, i386_YES, x86_64_YES or a combination of these, see comment in .r for more info. *****\n")
#error
#endif
#endif
#endif
#ifdef ppc_YES
0x10000000,
'dlle', 10007,
platformPowerPCNativeEntryPoint,
#ifdef i386_YES
,
#endif
#endif
#ifdef i386_YES
0x10000000,
'dlle', 10007,
platformIA32NativeEntryPoint
#ifdef x86_64_YES
,
#endif
#endif
#ifdef x86_64_YES
0x10000000,
'dlle', 10007,
8
#endif
}
};
#endif