|
@@ -120,8 +120,8 @@ public: |
|
|
fUsesEmbed(false), |
|
|
fUsesEmbed(false), |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
fUiServer(this), |
|
|
fUiServer(this), |
|
|
fLastScaleFactor(1.0f), |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
fLastScaleFactor(1.0f), |
|
|
fLastProjectFolder(), |
|
|
fLastProjectFolder(), |
|
|
fPluginDeleterMutex(), |
|
|
fPluginDeleterMutex(), |
|
|
fOptionsForced(false) |
|
|
fOptionsForced(false) |
|
@@ -1323,6 +1323,7 @@ protected: |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
void uiIdle() |
|
|
void uiIdle() |
|
|
{ |
|
|
{ |
|
@@ -1351,6 +1352,7 @@ protected: |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
idlePipe(); |
|
|
idlePipe(); |
|
|
|
|
|
|
|
|
switch (fUiServer.getAndResetUiState()) |
|
|
switch (fUiServer.getAndResetUiState()) |
|
@@ -1366,6 +1368,7 @@ protected: |
|
|
fUiServer.stopPipeServer(1000); |
|
|
fUiServer.stopPipeServer(1000); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
if (carla_isNotEqual(fLastScaleFactor, pData->options.uiScale)) |
|
|
if (carla_isNotEqual(fLastScaleFactor, pData->options.uiScale)) |
|
|
{ |
|
|
{ |
|
@@ -1391,6 +1394,7 @@ protected: |
|
|
if (plugin->getHints() & PLUGIN_HAS_CUSTOM_UI) |
|
|
if (plugin->getHints() & PLUGIN_HAS_CUSTOM_UI) |
|
|
plugin->uiParameterChange(rindex, value); |
|
|
plugin->uiParameterChange(rindex, value); |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
if (index >= kNumInParams || ! fUiServer.isPipeRunning()) |
|
|
if (index >= kNumInParams || ! fUiServer.isPipeRunning()) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
@@ -1400,9 +1404,11 @@ protected: |
|
|
0, 0, |
|
|
0, 0, |
|
|
value, |
|
|
value, |
|
|
nullptr); |
|
|
nullptr); |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
void idlePipe() |
|
|
void idlePipe() |
|
|
{ |
|
|
{ |
|
|
if (! fUiServer.isPipeRunning()) |
|
|
if (! fUiServer.isPipeRunning()) |
|
@@ -1628,6 +1634,7 @@ public: |
|
|
{ |
|
|
{ |
|
|
handlePtr->uiShow(show); |
|
|
handlePtr->uiShow(show); |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
static void _ui_idle(NativePluginHandle handle) |
|
|
static void _ui_idle(NativePluginHandle handle) |
|
|
{ |
|
|
{ |
|
@@ -1638,7 +1645,6 @@ public: |
|
|
{ |
|
|
{ |
|
|
handlePtr->uiSetParameterValue(index, value); |
|
|
handlePtr->uiSetParameterValue(index, value); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
static void _activate(NativePluginHandle handle) |
|
|
static void _activate(NativePluginHandle handle) |
|
|
{ |
|
|
{ |
|
@@ -1753,8 +1759,8 @@ private: |
|
|
bool fIsActive, fIsRunning, fUsesEmbed; |
|
|
bool fIsActive, fIsRunning, fUsesEmbed; |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNativeUI fUiServer; |
|
|
CarlaEngineNativeUI fUiServer; |
|
|
float fLastScaleFactor; |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
float fLastScaleFactor; |
|
|
|
|
|
|
|
|
float fParameters[kNumInParams+kNumOutParams]; |
|
|
float fParameters[kNumInParams+kNumOutParams]; |
|
|
CarlaString fLastProjectFolder; |
|
|
CarlaString fLastProjectFolder; |
|
@@ -2431,11 +2437,11 @@ static const NativePluginDescriptor carlaRackDesc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2484,11 +2490,11 @@ static const NativePluginDescriptor carlaRackNoMidiOutDesc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2537,11 +2543,11 @@ static const NativePluginDescriptor carlaPatchbayDesc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2590,11 +2596,11 @@ static const NativePluginDescriptor carlaPatchbay3sDesc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2643,11 +2649,11 @@ static const NativePluginDescriptor carlaPatchbay16Desc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2696,11 +2702,11 @@ static const NativePluginDescriptor carlaPatchbay32Desc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2749,11 +2755,11 @@ static const NativePluginDescriptor carlaPatchbay64Desc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2803,11 +2809,11 @@ static const NativePluginDescriptor carlaPatchbayCVDesc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2857,11 +2863,11 @@ static const NativePluginDescriptor carlaPatchbayCV8Desc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
@@ -2911,11 +2917,11 @@ static const NativePluginDescriptor carlaPatchbayCV32Desc = { |
|
|
/* _set_custom_data */ nullptr, |
|
|
/* _set_custom_data */ nullptr, |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
#ifndef CARLA_ENGINE_WITHOUT_UI |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_show, |
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
|
|
|
#else |
|
|
#else |
|
|
nullptr, nullptr, nullptr, |
|
|
|
|
|
|
|
|
nullptr, |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
CarlaEngineNative::_ui_idle, |
|
|
|
|
|
CarlaEngineNative::_ui_set_parameter_value, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_midi_program */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
/* _ui_set_custom_data */ nullptr, |
|
|
CarlaEngineNative::_activate, |
|
|
CarlaEngineNative::_activate, |
|
|