VST FX integration: plugin picker theo category + GUI embed fill viewport (FX Rack & Mastering)

This commit is contained in:
2026-08-19 07:55:57 +07:00
parent 19904bcad8
commit 0cf771242f
5 changed files with 111 additions and 50 deletions
+1 -1
View File
@@ -716,7 +716,7 @@ async def open_fx_gui(req: FxGuiRequest, current_user: dict = Depends(get_curren
# đang chạy → trả started=False (frontend có thể focus window cũ).
for proc in _FX_GUI_PROCESSES:
if proc is not None and proc.poll() is None and getattr(proc, "_sf_plugin_path", None) == plugin_path:
return {"success": True, "started": False, "already_running": True, "cmd": []}
return {"success": True, "started": False, "already_running": True, "cmd": [], "embed_url": getattr(proc, "_sf_embed_url", None) or None}
job = {"path": plugin_path, "name": req.name or os.path.basename(plugin_path)}
fd, job_path = tempfile.mkstemp(prefix="sf_fx_gui_", suffix=".json", dir=tempfile.gettempdir())
try: