@@ -59,6 +59,10 @@ | |||||
# define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0 | # define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0 | ||||
#endif | #endif | ||||
#ifndef DISTRHO_PLUGIN_IS_RT_SAFE | |||||
# define DISTRHO_PLUGIN_IS_RT_SAFE 1 | |||||
#endif | |||||
#define DISTRHO_UI_URI DISTRHO_PLUGIN_URI "#UI" | #define DISTRHO_UI_URI DISTRHO_PLUGIN_URI "#UI" | ||||
#endif // DISTRHO_PLUGIN_CHECKS_H_INCLUDED | #endif // DISTRHO_PLUGIN_CHECKS_H_INCLUDED |
@@ -446,7 +446,11 @@ static void dssi_run_synth(LADSPA_Handle instance, ulong sampleCount, snd_seq_ev | |||||
static LADSPA_Descriptor sLadspaDescriptor = { | static LADSPA_Descriptor sLadspaDescriptor = { | ||||
/* UniqueID */ 0, | /* UniqueID */ 0, | ||||
/* Label */ nullptr, | /* Label */ nullptr, | ||||
#if DISTRHO_PLUGIN_IS_RT_SAFE | |||||
/* Properties */ LADSPA_PROPERTY_HARD_RT_CAPABLE, | /* Properties */ LADSPA_PROPERTY_HARD_RT_CAPABLE, | ||||
#else | |||||
/* Properties */ 0x0, | |||||
#endif | |||||
/* Name */ nullptr, | /* Name */ nullptr, | ||||
/* Maker */ nullptr, | /* Maker */ nullptr, | ||||
/* Copyright */ nullptr, | /* Copyright */ nullptr, | ||||
@@ -166,8 +166,12 @@ void lv2_generate_ttl(const char* const basename) | |||||
pluginString += ";\n\n"; | pluginString += ";\n\n"; | ||||
// optionalFeatures | // optionalFeatures | ||||
#if DISTRHO_PLUGIN_IS_RT_SAFE | |||||
pluginString += " lv2:optionalFeature <" LV2_CORE__hardRTCapable "> ,\n"; | pluginString += " lv2:optionalFeature <" LV2_CORE__hardRTCapable "> ,\n"; | ||||
pluginString += " <" LV2_BUF_SIZE__boundedBlockLength "> ;\n"; | pluginString += " <" LV2_BUF_SIZE__boundedBlockLength "> ;\n"; | ||||
#else | |||||
pluginString += " lv2:optionalFeature <" LV2_BUF_SIZE__boundedBlockLength "> ;\n"; | |||||
#endif | |||||
pluginString += "\n"; | pluginString += "\n"; | ||||
// requiredFeatures | // requiredFeatures | ||||