Browse Source

Remove LV2 latency port from all plugins except pitchedDelay

tags/2018-04-16
falkTX 7 years ago
parent
commit
020c3f3201
30 changed files with 56 additions and 5 deletions
  1. +27
    -5
      libs/juce/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp
  2. +1
    -0
      ports/LUFSMeter/source/JucePluginCharacteristics.h
  3. +1
    -0
      ports/arctican-function/source/JucePluginCharacteristics.h
  4. +1
    -0
      ports/arctican-pilgrim/source/JucePluginCharacteristics.h
  5. +1
    -0
      ports/dexed/source/JucePluginCharacteristics.h
  6. +1
    -0
      ports/drowaudio-distortion/source/JucePluginCharacteristics.h
  7. +1
    -0
      ports/drowaudio-distortionshaper/source/JucePluginCharacteristics.h
  8. +1
    -0
      ports/drowaudio-flanger/source/JucePluginCharacteristics.h
  9. +1
    -0
      ports/drowaudio-reverb/source/JucePluginCharacteristics.h
  10. +1
    -0
      ports/drowaudio-tremolo/source/JucePluginCharacteristics.h
  11. +1
    -0
      ports/drumsynth/source/JucePluginCharacteristics.h
  12. +1
    -0
      ports/easySSP/source/JucePluginCharacteristics.h
  13. +1
    -0
      ports/eqinox/source/JucePluginCharacteristics.h
  14. +1
    -0
      ports/juce-demo-host/source/JucePluginCharacteristics.h
  15. +1
    -0
      ports/juce-demo-plugin/source/JucePluginCharacteristics.h
  16. +1
    -0
      ports/klangfalter/source/JucePluginCharacteristics.h
  17. +1
    -0
      ports/luftikus/source/JucePluginCharacteristics.h
  18. +1
    -0
      ports/obxd/source/JucePluginCharacteristics.h
  19. +1
    -0
      ports/pitchedDelay/source/JucePluginCharacteristics.h
  20. +1
    -0
      ports/stereosourceseparation/source/JucePluginCharacteristics.h
  21. +1
    -0
      ports/tal-dub-3/source/JucePluginCharacteristics.h
  22. +1
    -0
      ports/tal-filter-2/source/JucePluginCharacteristics.h
  23. +1
    -0
      ports/tal-filter/source/JucePluginCharacteristics.h
  24. +1
    -0
      ports/tal-noisemaker/source/JucePluginCharacteristics.h
  25. +1
    -0
      ports/tal-reverb-2/source/JucePluginCharacteristics.h
  26. +1
    -0
      ports/tal-reverb-3/source/JucePluginCharacteristics.h
  27. +1
    -0
      ports/tal-reverb/source/JucePluginCharacteristics.h
  28. +1
    -0
      ports/tal-vocoder-2/source/JucePluginCharacteristics.h
  29. +1
    -0
      ports/vex/source/JucePluginCharacteristics.h
  30. +1
    -0
      ports/wolpertinger/source/JucePluginCharacteristics.h

+ 27
- 5
libs/juce/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -20,6 +20,11 @@
#define JucePlugin_WantsLV2FixedBlockSize 0
#endif

/** Enable latency port */
#ifndef JucePlugin_WantsLV2Latency
#define JucePlugin_WantsLV2Latency 1
#endif

/** Use non-parameter states */
#ifndef JucePlugin_WantsLV2State
#define JucePlugin_WantsLV2State 1
@@ -312,7 +317,7 @@ const String makePluginFile (AudioProcessor* const filter)
text += "\n";
#endif

// Freewheel and latency ports
// Freewheel port
text += " lv2:port [\n";
text += " a lv2:InputPort, lv2:ControlPort ;\n";
text += " lv2:index " + String(portIndex++) + " ;\n";
@@ -323,8 +328,12 @@ const String makePluginFile (AudioProcessor* const filter)
text += " lv2:maximum 1.0 ;\n";
text += " lv2:designation <" LV2_CORE__freeWheeling "> ;\n";
text += " lv2:portProperty lv2:toggled, <" LV2_PORT_PROPS__notOnGUI "> ;\n";
text += " ] ,\n";
text += " [\n";
text += " ] ;\n";
text += "\n";

#if JucePlugin_WantsLV2Latency
// Latency port
text += " lv2:port [\n";
text += " a lv2:OutputPort, lv2:ControlPort ;\n";
text += " lv2:index " + String(portIndex++) + " ;\n";
text += " lv2:symbol \"lv2_latency\" ;\n";
@@ -333,6 +342,7 @@ const String makePluginFile (AudioProcessor* const filter)
text += " lv2:portProperty lv2:reportsLatency, lv2:integer ;\n";
text += " ] ;\n";
text += "\n";
#endif

// Audio inputs
for (int i=0; i < JucePlugin_MaxNumInputChannels; ++i)
@@ -855,7 +865,10 @@ public:
#if JucePlugin_ProducesMidiOutput
controlPortOffset += 1;
#endif
controlPortOffset += 2; // freewheel and latency
controlPortOffset += 1; // freewheel
#if JucePlugin_WantsLV2Latency
controlPortOffset += 1;
#endif
controlPortOffset += JucePlugin_MaxNumInputChannels;
controlPortOffset += JucePlugin_MaxNumOutputChannels;

@@ -1136,7 +1149,10 @@ public:
#endif

portFreewheel = nullptr;
portLatency = nullptr;

#if JucePlugin_WantsLV2Latency
portLatency = nullptr;
#endif

for (int i=0; i < numInChans; ++i)
portAudioIns[i] = nullptr;
@@ -1267,11 +1283,13 @@ public:
return;
}

#if JucePlugin_WantsLV2Latency
if (portId == index++)
{
portLatency = (float*)dataLocation;
return;
}
#endif

for (int i=0; i < numInChans; ++i)
{
@@ -1329,8 +1347,10 @@ public:
{
jassert (filter != nullptr);

#if JucePlugin_WantsLV2Latency
if (portLatency != nullptr)
*portLatency = filter->getLatencySamples();
#endif

if (portFreewheel != nullptr)
filter->setNonRealtime (*portFreewheel >= 0.5f);
@@ -1858,7 +1878,9 @@ private:
LV2_Atom_Sequence* portMidiOut;
#endif
float* portFreewheel;
#if JucePlugin_WantsLV2Latency
float* portLatency;
#endif
float* portAudioIns[JucePlugin_MaxNumInputChannels];
float* portAudioOuts[JucePlugin_MaxNumOutputChannels];
Array<float*> portControls;


+ 1
- 0
ports/LUFSMeter/source/JucePluginCharacteristics.h View File

@@ -69,6 +69,7 @@
#define JucePlugin_AAXDisableBypass 0
#define JucePlugin_AAXDisableMultiMono 0
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/arctican-function/source/JucePluginCharacteristics.h View File

@@ -41,6 +41,7 @@
#define JucePlugin_LV2URI "http://arcticanaudio.com/plugins/thefunction"
#define JucePlugin_LV2Category "SpatialPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 1
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/arctican-pilgrim/source/JucePluginCharacteristics.h View File

@@ -41,6 +41,7 @@
#define JucePlugin_LV2URI "http://arcticanaudio.com/plugins/thepilgrim"
#define JucePlugin_LV2Category "PhaserPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/dexed/source/JucePluginCharacteristics.h View File

@@ -131,6 +131,7 @@
#define JucePlugin_LV2URI "https://github.com/asb2m10/dexed"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drowaudio-distortion/source/JucePluginCharacteristics.h View File

@@ -273,6 +273,7 @@

#define JucePlugin_LV2URI "http://www.drowaudio.co.uk/audio/audio_plugins/distortion"
#define JucePlugin_LV2Category "DistortionPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drowaudio-distortionshaper/source/JucePluginCharacteristics.h View File

@@ -283,6 +283,7 @@

#define JucePlugin_LV2URI "http://www.drowaudio.co.uk/audio/audio_plugins/distortion_shaper"
#define JucePlugin_LV2Category "DistortionPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drowaudio-flanger/source/JucePluginCharacteristics.h View File

@@ -275,6 +275,7 @@

#define JucePlugin_LV2URI "http://www.drowaudio.co.uk/audio/audio_plugins/flanger"
#define JucePlugin_LV2Category "FlangerPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drowaudio-reverb/source/JucePluginCharacteristics.h View File

@@ -282,6 +282,7 @@

#define JucePlugin_LV2URI "http://www.drowaudio.co.uk/audio/audio_plugins/reverb"
#define JucePlugin_LV2Category "ReverbPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drowaudio-tremolo/source/JucePluginCharacteristics.h View File

@@ -46,6 +46,7 @@
#define JucePlugin_LV2URI "http://www.drowaudio.co.uk/audio/audio_plugins/tremolo"
#define JucePlugin_LV2Category "DynamicsPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/drumsynth/source/JucePluginCharacteristics.h View File

@@ -63,6 +63,7 @@
#define JucePlugin_LV2URI "urn:juced:DrumSynth"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/easySSP/source/JucePluginCharacteristics.h View File

@@ -137,6 +137,7 @@
#endif
#define JucePlugin_LV2URI "http://au.tomatl.org/essp"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/eqinox/source/JucePluginCharacteristics.h View File

@@ -58,6 +58,7 @@
#define JucePlugin_LV2URI "urn:juced:EQinox"
#define JucePlugin_LV2Category "EQPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/juce-demo-host/source/JucePluginCharacteristics.h View File

@@ -41,6 +41,7 @@
#define JucePlugin_RTASProductId JucePlugin_PluginCode
#define JucePlugin_LV2URI "urn:juce:JuceDemoHost"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/juce-demo-plugin/source/JucePluginCharacteristics.h View File

@@ -41,6 +41,7 @@
#define JucePlugin_RTASProductId JucePlugin_PluginCode
#define JucePlugin_LV2URI "urn:juce:JuceDemoPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/klangfalter/source/JucePluginCharacteristics.h View File

@@ -122,6 +122,7 @@
#define JucePlugin_LV2URI "https://github.com/HiFi-LoFi/KlangFalter"
#define JucePlugin_LV2Category "ReverbPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/luftikus/source/JucePluginCharacteristics.h View File

@@ -51,6 +51,7 @@
#define JucePlugin_LV2URI "https://code.google.com/p/lkjb-plugins/luftikus"
#define JucePlugin_LV2Category "EQPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/obxd/source/JucePluginCharacteristics.h View File

@@ -131,6 +131,7 @@

#define JucePlugin_LV2URI "https://obxd.wordpress.com"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/pitchedDelay/source/JucePluginCharacteristics.h View File

@@ -51,6 +51,7 @@
#define JucePlugin_LV2URI "http://code.google.com/p/lkjb-dc12/"
#define JucePlugin_LV2Category "DelayPlugin"
#define JucePlugin_WantsLV2Latency 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2Presets 0


+ 1
- 0
ports/stereosourceseparation/source/JucePluginCharacteristics.h View File

@@ -130,6 +130,7 @@
#endif
#define JucePlugin_LV2URI "https://github.com/laixinyuan/StereoSourceSepartion"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


+ 1
- 0
ports/tal-dub-3/source/JucePluginCharacteristics.h View File

@@ -287,6 +287,7 @@
#define JucePlugin_LV2URI "urn:juce:TalDub3"
#define JucePlugin_LV2Category "DelayPlugin"

#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1


+ 1
- 0
ports/tal-filter-2/source/JucePluginCharacteristics.h View File

@@ -282,6 +282,7 @@
#define JucePlugin_LV2URI "urn:juce:TalFilter2"
#define JucePlugin_LV2Category "FilterPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1


+ 1
- 0
ports/tal-filter/source/JucePluginCharacteristics.h View File

@@ -286,6 +286,7 @@
#define JucePlugin_LV2URI "urn:juce:TalFilter"
#define JucePlugin_LV2Category "FilterPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1


+ 1
- 0
ports/tal-noisemaker/source/JucePluginCharacteristics.h View File

@@ -41,6 +41,7 @@
#define JucePlugin_LV2URI "http://kunz.corrupt.ch/products/tal-noisemaker"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 1
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1


+ 1
- 0
ports/tal-reverb-2/source/JucePluginCharacteristics.h View File

@@ -287,6 +287,7 @@
#define JucePlugin_LV2URI "urn:juce:TalReverb2"
#define JucePlugin_LV2Category "ReverbPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1
#define JucePlugin_WantsLV2Presets 1


+ 1
- 0
ports/tal-reverb-3/source/JucePluginCharacteristics.h View File

@@ -287,6 +287,7 @@
#define JucePlugin_LV2URI "urn:juce:TalReverb3"
#define JucePlugin_LV2Category "ReverbPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1
#define JucePlugin_WantsLV2Presets 1


+ 1
- 0
ports/tal-reverb/source/JucePluginCharacteristics.h View File

@@ -269,6 +269,7 @@
#define JucePlugin_LV2URI "urn:juce:TalReverb"
#define JucePlugin_LV2Category "ReverbPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1
#define JucePlugin_WantsLV2Presets 1


+ 1
- 0
ports/tal-vocoder-2/source/JucePluginCharacteristics.h View File

@@ -287,6 +287,7 @@
#define JucePlugin_LV2URI "http://kunz.corrupt.ch/products/tal-vocoder"
#define JucePlugin_LV2Category "ModulatorPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2StateString 1
#define JucePlugin_WantsLV2Presets 1


+ 1
- 0
ports/vex/source/JucePluginCharacteristics.h View File

@@ -263,6 +263,7 @@
#define JucePlugin_LV2URI "urn:juce:Vex"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2FixedBlockSize 1


+ 1
- 0
ports/wolpertinger/source/JucePluginCharacteristics.h View File

@@ -282,6 +282,7 @@
#define JucePlugin_LV2URI "http://tumbetoene.tuxfamily.org"
#define JucePlugin_LV2Category "InstrumentPlugin"
#define JucePlugin_WantsLV2Latency 0
#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 0
#define JucePlugin_WantsLV2TimePos 0


Loading…
Cancel
Save