void uiShow(const bool show) override { if (show) { if (isPipeRunning()) { writeFocusMessage(); return; } carla_stdout("Trying to start UI using \"%s\"", fExtUiPath.buffer()); CarlaExternalUI::setData(fExtUiPath, getSampleRate(), getUiName()); if (! CarlaExternalUI::startPipeServer(true)) { uiClosed(); hostUiUnavailable(); } } else { CarlaExternalUI::stopPipeServer(2000); } }
void uiIdle() override { CarlaExternalUI::idlePipe(); switch (CarlaExternalUI::getAndResetUiState()) { case CarlaExternalUI::UiNone: case CarlaExternalUI::UiShow: break; case CarlaExternalUI::UiCrashed: uiClosed(); hostUiUnavailable(); break; case CarlaExternalUI::UiHide: uiClosed(); CarlaExternalUI::stopPipeServer(1000); break; } }
void uiIdle() override { CarlaExternalUI::idle(); if (! CarlaExternalUI::isOk()) return; switch (CarlaExternalUI::getAndResetUiState()) { case CarlaExternalUI::UiNone: case CarlaExternalUI::UiShow: break; case CarlaExternalUI::UiCrashed: hostUiUnavailable(); break; case CarlaExternalUI::UiHide: uiClosed(); CarlaExternalUI::stop(); break; } }