diff --git a/resources/ui/carla_edit.ui b/resources/ui/carla_edit.ui
index 9af6f9443..7061de3eb 100644
--- a/resources/ui/carla_edit.ui
+++ b/resources/ui/carla_edit.ui
@@ -298,7 +298,7 @@
0
-
-
+
Use Balance
@@ -308,7 +308,7 @@
-
-
+
Use Panning
diff --git a/source/backend/plugin/CarlaPlugin.cpp b/source/backend/plugin/CarlaPlugin.cpp
index ef5f3c811..aa22aa8d1 100644
--- a/source/backend/plugin/CarlaPlugin.cpp
+++ b/source/backend/plugin/CarlaPlugin.cpp
@@ -501,13 +501,14 @@ const SaveState& CarlaPlugin::getSaveState()
{
const ParameterData& paramData(pData->param.data[i]);
- if (paramData.type != PARAMETER_INPUT || (paramData.hints & PARAMETER_IS_ENABLED) == 0)
+ if ((paramData.hints & PARAMETER_IS_ENABLED) == 0)
continue;
StateParameter* const stateParameter(new StateParameter());
- stateParameter->index = paramData.index;
- stateParameter->midiCC = paramData.midiCC;
+ stateParameter->isInput = (paramData.type == PARAMETER_INPUT);
+ stateParameter->index = paramData.index;
+ stateParameter->midiCC = paramData.midiCC;
stateParameter->midiChannel = paramData.midiChannel;
getParameterName(i, strBuf);
@@ -691,10 +692,16 @@ void CarlaPlugin::loadSaveState(const SaveState& saveState)
// Now set parameter
if (index >= 0 && index < static_cast(pData->param.count))
{
- if (pData->param.data[index].hints & PARAMETER_USES_SAMPLERATE)
- stateParameter->value *= sampleRate;
+ //CARLA_SAFE_ASSERT(stateParameter->isInput == (pData
+
+ if (stateParameter->isInput)
+ {
+ if (pData->param.data[index].hints & PARAMETER_USES_SAMPLERATE)
+ stateParameter->value *= sampleRate;
+
+ setParameterValue(static_cast(index), stateParameter->value, true, true, true);
+ }
- setParameterValue(static_cast(index), stateParameter->value, true, true, true);
#ifndef BUILD_BRIDGE
setParameterMidiCC(static_cast(index), stateParameter->midiCC, true, true);
setParameterMidiChannel(static_cast(index), stateParameter->midiChannel, true, true);
diff --git a/source/carla_shared.py b/source/carla_shared.py
index d083d2f77..24c60379d 100644
--- a/source/carla_shared.py
+++ b/source/carla_shared.py
@@ -54,7 +54,7 @@ elif WINDOWS:
# ------------------------------------------------------------------------------------------------------------
# Set Version
-VERSION = "1.9.0"
+VERSION = "1.9.3 (2.0-beta1)"
# ------------------------------------------------------------------------------------------------------------
# Set TMP
diff --git a/source/carla_widgets.py b/source/carla_widgets.py
index f3a34d169..a37365f7a 100755
--- a/source/carla_widgets.py
+++ b/source/carla_widgets.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Carla widgets code
-# Copyright (C) 2011-2013 Filipe Coelho
+# Copyright (C) 2011-2014 Filipe Coelho
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -103,7 +103,7 @@ class CarlaAboutW(QDialog):
self.ui.l_about.setText(self.tr(""
"
Version %s"
"
Carla is a Multi-Plugin Host for JACK%s.
"
- "
Copyright (C) 2011-2013 falkTX
"
+ "
Copyright (C) 2011-2014 falkTX
"
"" % (VERSION, extraInfo)))
if gCarla.isControl or gCarla.isPlugin or gCarla.host is None:
@@ -436,6 +436,10 @@ class PluginEdit(QDialog):
self.ui.scrollArea.setEnabled(False)
self.ui.scrollArea.setVisible(False)
+ # todo
+ self.ui.rb_balance.setEnabled(False)
+ self.ui.rb_pan.setEnabled(False)
+
self.reloadAll()
# -------------------------------------------------------------
diff --git a/source/includes/CarlaDefines.h b/source/includes/CarlaDefines.h
index 1c7c44237..63165945c 100644
--- a/source/includes/CarlaDefines.h
+++ b/source/includes/CarlaDefines.h
@@ -24,8 +24,8 @@
#endif
/* Set Version */
-#define CARLA_VERSION_HEX 0x01092
-#define CARLA_VERSION_STRING "1.9.2"
+#define CARLA_VERSION_HEX 0x01093
+#define CARLA_VERSION_STRING "1.9.3 (2.0-beta1)"
/* Check OS */
#if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
diff --git a/source/utils/CarlaStateUtils.cpp b/source/utils/CarlaStateUtils.cpp
index 80d1ba781..626f9cf88 100644
--- a/source/utils/CarlaStateUtils.cpp
+++ b/source/utils/CarlaStateUtils.cpp
@@ -30,7 +30,8 @@ CARLA_BACKEND_START_NAMESPACE
// StateParameter
StateParameter::StateParameter() noexcept
- : index(-1),
+ : isInput(true),
+ index(-1),
name(nullptr),
symbol(nullptr),
value(0.0f),
@@ -506,7 +507,8 @@ void fillXmlStringFromSaveState(QString& content, const SaveState& saveState)
if (stateParameter->symbol != nullptr && stateParameter->symbol[0] != '\0')
parameter += QString(" %1\n").arg(xmlSafeString(stateParameter->symbol, true));
- parameter += QString(" %1\n").arg(stateParameter->value);
+ if (stateParameter->isInput)
+ parameter += QString(" %1\n").arg(stateParameter->value);
if (stateParameter->midiCC > 0)
{
diff --git a/source/utils/CarlaStateUtils.hpp b/source/utils/CarlaStateUtils.hpp
index 318c2b4ec..842b1f3c7 100644
--- a/source/utils/CarlaStateUtils.hpp
+++ b/source/utils/CarlaStateUtils.hpp
@@ -35,6 +35,7 @@ CARLA_BACKEND_START_NAMESPACE
// -----------------------------------------------------------------------
struct StateParameter {
+ bool isInput;
int32_t index;
const char* name;
const char* symbol;