Browse Source

New DISTRHO_PLUGIN_IS_RT_SAFE macro, enabled by default

gh-pages
falkTX 10 years ago
parent
commit
52a8f48238
3 changed files with 12 additions and 0 deletions
  1. +4
    -0
      distrho/src/DistrhoPluginChecks.h
  2. +4
    -0
      distrho/src/DistrhoPluginLADSPA+DSSI.cpp
  3. +4
    -0
      distrho/src/DistrhoPluginLV2export.cpp

+ 4
- 0
distrho/src/DistrhoPluginChecks.h View File

@@ -59,6 +59,10 @@
# define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
#endif

#ifndef DISTRHO_PLUGIN_IS_RT_SAFE
# define DISTRHO_PLUGIN_IS_RT_SAFE 1
#endif

#define DISTRHO_UI_URI DISTRHO_PLUGIN_URI "#UI"

#endif // DISTRHO_PLUGIN_CHECKS_H_INCLUDED

+ 4
- 0
distrho/src/DistrhoPluginLADSPA+DSSI.cpp View File

@@ -446,7 +446,11 @@ static void dssi_run_synth(LADSPA_Handle instance, ulong sampleCount, snd_seq_ev
static LADSPA_Descriptor sLadspaDescriptor = {
/* UniqueID */ 0,
/* Label */ nullptr,
#if DISTRHO_PLUGIN_IS_RT_SAFE
/* Properties */ LADSPA_PROPERTY_HARD_RT_CAPABLE,
#else
/* Properties */ 0x0,
#endif
/* Name */ nullptr,
/* Maker */ nullptr,
/* Copyright */ nullptr,


+ 4
- 0
distrho/src/DistrhoPluginLV2export.cpp View File

@@ -166,8 +166,12 @@ void lv2_generate_ttl(const char* const basename)
pluginString += ";\n\n";

// optionalFeatures
#if DISTRHO_PLUGIN_IS_RT_SAFE
pluginString += " lv2:optionalFeature <" LV2_CORE__hardRTCapable "> ,\n";
pluginString += " <" LV2_BUF_SIZE__boundedBlockLength "> ;\n";
#else
pluginString += " lv2:optionalFeature <" LV2_BUF_SIZE__boundedBlockLength "> ;\n";
#endif
pluginString += "\n";

// requiredFeatures


Loading…
Cancel
Save