Ildaeil: Add reload bridge button, in case it crashes or times out
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1f5019a377
commit
991928e3c1
2 changed files with 22 additions and 2 deletions
2
carla
2
carla
|
@ -1 +1 @@
|
||||||
Subproject commit a627caf17f141009602a76e99cbfc93f5b7d1455
|
Subproject commit dd092c74aa28f626108f6d3a52c565cb9047d32d
|
|
@ -572,7 +572,7 @@ struct IldaeilModule : Module {
|
||||||
{
|
{
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
{
|
{
|
||||||
// cannnot be supported
|
// cannnot be supported?
|
||||||
case NATIVE_HOST_OPCODE_HOST_IDLE:
|
case NATIVE_HOST_OPCODE_HOST_IDLE:
|
||||||
break;
|
break;
|
||||||
// other stuff
|
// other stuff
|
||||||
|
@ -955,6 +955,7 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Runner {
|
||||||
bool fPluginHasCustomUI = false;
|
bool fPluginHasCustomUI = false;
|
||||||
bool fPluginHasFileOpen = false;
|
bool fPluginHasFileOpen = false;
|
||||||
bool fPluginHasOutputParameters = false;
|
bool fPluginHasOutputParameters = false;
|
||||||
|
bool fPluginIsBridge = false;
|
||||||
bool fPluginRunning = false;
|
bool fPluginRunning = false;
|
||||||
bool fPluginWillRunInBridgeMode = false;
|
bool fPluginWillRunInBridgeMode = false;
|
||||||
Mutex fPluginsMutex;
|
Mutex fPluginsMutex;
|
||||||
|
@ -1045,6 +1046,8 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Runner {
|
||||||
fPluginHasCustomUI = hints & PLUGIN_HAS_CUSTOM_UI;
|
fPluginHasCustomUI = hints & PLUGIN_HAS_CUSTOM_UI;
|
||||||
fPluginHasFileOpen = false;
|
fPluginHasFileOpen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fPluginIsBridge = hints & PLUGIN_IS_BRIDGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void projectLoadedFromDSP()
|
void projectLoadedFromDSP()
|
||||||
|
@ -1969,6 +1972,23 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Runner {
|
||||||
{
|
{
|
||||||
const CarlaHostHandle handle = module->fCarlaHostHandle;
|
const CarlaHostHandle handle = module->fCarlaHostHandle;
|
||||||
|
|
||||||
|
if (fPluginIsBridge)
|
||||||
|
{
|
||||||
|
const bool active = carla_get_internal_parameter_value(handle, 0, PARAMETER_ACTIVE) > 0.5f;
|
||||||
|
|
||||||
|
if (active)
|
||||||
|
{
|
||||||
|
ImGui::BeginDisabled();
|
||||||
|
ImGui::Button("Reload bridge");
|
||||||
|
ImGui::EndDisabled();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (ImGui::Button("Reload bridge"))
|
||||||
|
carla_set_active(handle, 0, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ui->presetCount != 0)
|
if (ui->presetCount != 0)
|
||||||
{
|
{
|
||||||
ImGui::Text("Preset:");
|
ImGui::Text("Preset:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue