Browse Source

Fix build with external plugins

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 6 years ago
parent
commit
cb141838a9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 9 additions and 7 deletions
  1. +8
    -6
      source/modules/distrho/src/DistrhoPluginCarla.cpp
  2. +1
    -1
      source/native-plugins/external

+ 8
- 6
source/modules/distrho/src/DistrhoPluginCarla.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2018 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -98,7 +98,7 @@ public:
// ---------------------------------------------

protected:
void handleEditParameter(const uint32_t index, const bool touch)
void handleEditParameter(const uint32_t rindex, const bool touch)
{
fHost->ui_parameter_touch(fHost->handle, rindex, touch);
}
@@ -360,7 +360,8 @@ protected:
}

#if DISTRHO_PLUGIN_WANT_MIDI_INPUT
void process(float** const inBuffer, float** const outBuffer, const uint32_t frames, const NativeMidiEvent* const midiEvents, const uint32_t midiEventCount) override
void process(const float** const inBuffer, float** const outBuffer, const uint32_t frames,
const NativeMidiEvent* const midiEvents, const uint32_t midiEventCount) override
{
MidiEvent realMidiEvents[midiEventCount];

@@ -381,12 +382,13 @@ protected:
realMidiEvent.dataExt = nullptr;
}

fPlugin.run(const_cast<const float**>(inBuffer), outBuffer, frames, realMidiEvents, midiEventCount);
fPlugin.run(inBuffer, outBuffer, frames, realMidiEvents, midiEventCount);
}
#else
void process(float** const inBuffer, float** const outBuffer, const uint32_t frames, const NativeMidiEvent* const, const uint32_t) override
void process(const float** const inBuffer, float** const outBuffer, const uint32_t frames,
const NativeMidiEvent* const, const uint32_t) override
{
fPlugin.run(const_cast<const float**>(inBuffer), outBuffer, frames);
fPlugin.run(inBuffer, outBuffer, frames);
}
#endif



+ 1
- 1
source/native-plugins/external

@@ -1 +1 @@
Subproject commit 98723d7b886d7d5970ff3d3b24437b55af4a9059
Subproject commit 859bc9803abc2717717b1a88e7addd50dfa1c2c9

Loading…
Cancel
Save