Browse Source

Use fixed buffers in LV2 plugins if they contain a latency port

tags/1.9.7
falkTX 8 years ago
parent
commit
882ca9a826
2 changed files with 6 additions and 3 deletions
  1. +1
    -1
      source/backend/plugin/CarlaPluginBridge.cpp
  2. +5
    -2
      source/backend/plugin/CarlaPluginLV2.cpp

+ 1
- 1
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -1,6 +1,6 @@
/*
* Carla Plugin Bridge
* Copyright (C) 2011-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2011-2016 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as


+ 5
- 2
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -815,7 +815,10 @@ public:
if (fExt.programs != nullptr)
options |= PLUGIN_OPTION_MAP_PROGRAM_CHANGES;

if (! (hasMidiIn || fNeedsFixedBuffers))
// can't disable fixed buffers if using latency or MIDI
if (fLatencyIndex >= 0 || hasMidiIn || fNeedsFixedBuffers)
pass();
else
options |= PLUGIN_OPTION_FIXED_BUFFERS;

if (fCanInit2 && pData->engine->getProccessMode() != ENGINE_PROCESS_MODE_CONTINUOUS_RACK)
@@ -5022,7 +5025,7 @@ public:
if (fExt.programs != nullptr && getCategory() == PLUGIN_CATEGORY_SYNTH)
pData->options |= PLUGIN_OPTION_MAP_PROGRAM_CHANGES;

if (getMidiInCount() > 0 || fNeedsFixedBuffers)
if (fLatencyIndex >= 0 || getMidiInCount() > 0 || fNeedsFixedBuffers)
pData->options |= PLUGIN_OPTION_FIXED_BUFFERS;
else if (options & PLUGIN_OPTION_FIXED_BUFFERS)
pData->options |= PLUGIN_OPTION_FIXED_BUFFERS;


Loading…
Cancel
Save