Better OSC defaults, dont reset context for desktop builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1c659cbd67
commit
47d4e08f49
6 changed files with 80 additions and 76 deletions
|
|
@ -1,18 +1,7 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021-2023 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
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
* Copyright (C) 2021-2024 Filipe Coelho <falktx@falktx.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -295,7 +284,7 @@ static void Engine_stepFrame(Engine* that) {
|
|||
Param* smoothParam = &smoothModule->params[smoothParamId];
|
||||
float value = smoothParam->value;
|
||||
float newValue;
|
||||
if (internal->remoteDetails != nullptr) {
|
||||
if (internal->remoteDetails != nullptr && internal->remoteDetails->connected) {
|
||||
newValue = value;
|
||||
sendParamChangeToRemote(internal->remoteDetails, smoothModule->id, smoothParamId, value);
|
||||
} else {
|
||||
|
|
@ -1094,7 +1083,7 @@ void Engine::setParamValue(Module* module, int paramId, float value) {
|
|||
internal->smoothModule = NULL;
|
||||
internal->smoothParamId = 0;
|
||||
}
|
||||
if (internal->remoteDetails != nullptr) {
|
||||
if (internal->remoteDetails != nullptr && internal->remoteDetails->connected) {
|
||||
sendParamChangeToRemote(internal->remoteDetails, module->id, paramId, value);
|
||||
}
|
||||
module->params[paramId].setValue(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue