@@ -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