| @@ -961,6 +961,10 @@ protected: | |||||
| fUiServer.writeAndFixMsg("carla-file-exts"); | fUiServer.writeAndFixMsg("carla-file-exts"); | ||||
| fUiServer.writeAndFixMsg(carla_get_supported_file_extensions()); | fUiServer.writeAndFixMsg(carla_get_supported_file_extensions()); | ||||
| fUiServer.writeAndFixMsg("carla-max-plugin-number"); | |||||
| std::sprintf(fTmpBuf, "%i\n", pData->maxPluginNumber); | |||||
| fUiServer.writeMsg(fTmpBuf); | |||||
| } | } | ||||
| void uiServerOptions() | void uiServerOptions() | ||||
| @@ -2894,6 +2894,7 @@ class CarlaHostPlugin(CarlaHostMeta): | |||||
| self.fCompleteLicenseText = "" | self.fCompleteLicenseText = "" | ||||
| self.fJuceVersion = "" | self.fJuceVersion = "" | ||||
| self.fSupportedFileExts = "" | self.fSupportedFileExts = "" | ||||
| self.fMaxPluginNumber = 0 | |||||
| self.fLastError = "" | self.fLastError = "" | ||||
| self.fOscUrlTCP = "" | self.fOscUrlTCP = "" | ||||
| self.fOscUrlUDP = "" | self.fOscUrlUDP = "" | ||||
| @@ -3007,7 +3008,7 @@ class CarlaHostPlugin(CarlaHostMeta): | |||||
| return len(self.fPluginsInfo) | return len(self.fPluginsInfo) | ||||
| def get_max_plugin_number(self): | def get_max_plugin_number(self): | ||||
| return 0 # TODO | |||||
| return self.fMaxPluginNumber | |||||
| def add_plugin(self, btype, ptype, filename, name, label, uniqueId, extraPtr): | def add_plugin(self, btype, ptype, filename, name, label, uniqueId, extraPtr): | ||||
| return self.sendMsgAndSetError(["add_plugin", btype, ptype, filename, name, label, uniqueId]) | return self.sendMsgAndSetError(["add_plugin", btype, ptype, filename, name, label, uniqueId]) | ||||
| @@ -320,6 +320,10 @@ class CarlaMiniW(ExternalUI, HostWindow): | |||||
| exts = self.readlineblock().replace("\r", "\n") | exts = self.readlineblock().replace("\r", "\n") | ||||
| self.host.fSupportedFileExts = exts | self.host.fSupportedFileExts = exts | ||||
| elif msg == "carla-max-plugin-number": | |||||
| maxnum = int(self.readlineblock()) | |||||
| self.host.fMaxPluginNumber = maxnum | |||||
| elif msg == "error": | elif msg == "error": | ||||
| error = self.readlineblock().replace("\r", "\n") | error = self.readlineblock().replace("\r", "\n") | ||||
| engineCallback(self.host, ENGINE_CALLBACK_ERROR, 0, 0, 0, 0.0, error) | engineCallback(self.host, ENGINE_CALLBACK_ERROR, 0, 0, 0, 0.0, error) | ||||