Browse Source

Report plugin UI close in embed mode

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
6ee03336ab
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 13 additions and 2 deletions
  1. +1
    -0
      source/Makefile.deps.mk
  2. +3
    -0
      source/Makefile.mk
  3. +9
    -2
      source/backend/engine/CarlaEngineNative.cpp

+ 1
- 0
source/Makefile.deps.mk View File

@@ -366,6 +366,7 @@ HAVE_PYQT = false
HAVE_QT4 = false HAVE_QT4 = false
HAVE_QT5 = false HAVE_QT5 = false
HAVE_QT5PKG = false HAVE_QT5PKG = false
HAVE_SDL = false
USING_JUCE = false USING_JUCE = false
USING_JUCE_AUDIO_DEVICES = false USING_JUCE_AUDIO_DEVICES = false
USING_RTAUDIO = false USING_RTAUDIO = false


+ 3
- 0
source/Makefile.mk View File

@@ -83,6 +83,9 @@ endif
ifeq ($(DEBUG),true) ifeq ($(DEBUG),true)
BASE_FLAGS += -DDEBUG -O0 -g BASE_FLAGS += -DDEBUG -O0 -g
LINK_OPTS = LINK_OPTS =
ifeq ($(WASM),true)
LINK_OPTS += -sASSERTIONS=1
endif
else else
BASE_FLAGS += -DNDEBUG $(BASE_OPTS) -fvisibility=hidden BASE_FLAGS += -DNDEBUG $(BASE_OPTS) -fvisibility=hidden
CXXFLAGS += -fvisibility-inlines-hidden CXXFLAGS += -fvisibility-inlines-hidden


+ 9
- 2
source/backend/engine/CarlaEngineNative.cpp View File

@@ -308,13 +308,15 @@ public:
{ {
fParameters[rindex] = valuef; fParameters[rindex] = valuef;


if (fUsesEmbed
#ifndef CARLA_ENGINE_WITHOUT_UI #ifndef CARLA_ENGINE_WITHOUT_UI
if (fUsesEmbed || fUiServer.isPipeRunning())
|| fUiServer.isPipeRunning()
#endif
)
{ {
pHost->ui_parameter_changed(pHost->handle, rindex, valuef); pHost->ui_parameter_changed(pHost->handle, rindex, valuef);
} }
else else
#endif
{ {
static uint last_pluginId = pluginId; static uint last_pluginId = pluginId;
static int last_value1 = value1; static int last_value1 = value1;
@@ -333,6 +335,11 @@ public:
} }
break; break;


case ENGINE_CALLBACK_UI_STATE_CHANGED:
if (sendHost && fUsesEmbed)
pHost->ui_closed(pHost->handle);
break;

default: default:
break; break;
} }


Loading…
Cancel
Save