Skip to content

Commit ebd74db

Browse files
committed
Fix compilation error
1 parent 61500a1 commit ebd74db

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

modules/yup_audio_plugin_client/clap/yup_audio_plugin_client_CLAP.cpp

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,7 @@ bool pluginSyncAudioToMain (AudioProcessor& audioProcessor)
142142

143143
//==============================================================================
144144

145-
static const clap_plugin_descriptor_t pluginDescriptor = {
146-
.clap_version = CLAP_VERSION_INIT,
147-
.id = YupPlugin_Id,
148-
.name = YupPlugin_Name,
149-
.vendor = YupPlugin_Vendor,
150-
.url = YupPlugin_URL,
151-
.manual_url = YupPlugin_URL,
152-
.support_url = YupPlugin_URL,
153-
.version = YupPlugin_Version,
154-
.description = YupPlugin_Description,
155-
156-
.features = (const char*[]) {
145+
static const char* pluginFeatures[] = {
157146
#if YupPlugin_IsSynth
158147
CLAP_PLUGIN_FEATURE_INSTRUMENT,
159148
CLAP_PLUGIN_FEATURE_SYNTHESIZER,
@@ -167,8 +156,20 @@ static const clap_plugin_descriptor_t pluginDescriptor = {
167156
CLAP_PLUGIN_FEATURE_STEREO,
168157
#endif
169158

170-
nullptr,
171-
},
159+
nullptr
160+
};
161+
162+
static const clap_plugin_descriptor_t pluginDescriptor = {
163+
.clap_version = CLAP_VERSION_INIT,
164+
.id = YupPlugin_Id,
165+
.name = YupPlugin_Name,
166+
.vendor = YupPlugin_Vendor,
167+
.url = YupPlugin_URL,
168+
.manual_url = YupPlugin_URL,
169+
.support_url = YupPlugin_URL,
170+
.version = YupPlugin_Version,
171+
.description = YupPlugin_Description,
172+
.features = pluginFeatures,
172173
};
173174

174175
#if JUCE_MAC

0 commit comments

Comments
 (0)