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 uiShow(const bool show) override { if (show) { if (isOk()) return; CarlaString path(getResourceDir() + fExtUiPath); carla_stdout("Trying to start UI using \"%s\"", path.buffer()); CarlaExternalUI::setData(path, getSampleRate(), getUiName()); CarlaExternalUI::start(); } else { CarlaExternalUI::stop(); } }