Add direct parameter changes to remote control, for LV2 and OSC

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-29 17:20:35 +00:00
parent 91cac905cc
commit d0eba9e1ae
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
11 changed files with 136 additions and 33 deletions

View file

@ -64,6 +64,7 @@
namespace rack {
namespace engine {
void Engine_setAboutToClose(Engine*);
void Engine_setRemoteDetails(Engine*, remoteUtils::RemoteDetails*);
}
namespace window {
void WindowSetPluginUI(Window* window, DISTRHO_NAMESPACE::UI* ui);
@ -344,8 +345,7 @@ public:
rack::contextSet(context);
#if CARDINAL_VARIANT_MINI
DISTRHO_SAFE_ASSERT_RETURN(remoteUtils::connectToRemote(),);
DISTRHO_SAFE_ASSERT_RETURN(remoteDetails != nullptr,);
remoteUtils::connectToRemote();
// create unique temporary path for this instance
try {
@ -387,6 +387,8 @@ public:
context->window = new rack::window::Window;
context->scene->rackScroll->reset();
Engine_setRemoteDetails(context->engine, remoteDetails);
#endif
Window& window(getWindow());