Browse Source

Setup bundle path for LV2 ttl export

Signed-off-by: falkTX <falktx@falktx.com>
pull/344/head
falkTX 3 years ago
parent
commit
437d080a68
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      distrho/src/DistrhoPluginLV2export.cpp

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

@@ -15,6 +15,7 @@
*/

#include "DistrhoPluginInternal.hpp"
#include "../DistrhoPluginUtils.hpp"

#include "lv2/atom.h"
#include "lv2/buf-size.h"
@@ -223,6 +224,10 @@ void lv2_generate_ttl(const char* const basename)
{
USE_NAMESPACE_DISTRHO

String bundlePath(getBinaryFilename());
bundlePath.truncate(bundlePath.rfind(DISTRHO_OS_SEP));
d_nextBundlePath = bundlePath.buffer();

// Dummy plugin to get data from
d_nextBufferSize = 512;
d_nextSampleRate = 44100.0;


Loading…
Cancel
Save