connect solution into app: VSTi live native (vst3 attach/vst2 bridge) with WASM autosample fallback, VST GUI window (Bug 1), native-first track instrument

This commit is contained in:
2026-08-11 20:35:53 +07:00
parent 916ce1334b
commit 255e8586bc
13 changed files with 538 additions and 98 deletions
+9
View File
@@ -134,6 +134,15 @@ async def get_index():
return resp
@app.get("/vst_gui.html", response_class=HTMLResponse)
async def get_vst_gui():
"""Cửa sổ VST GUI (Bug 1): Rust mở WebviewUrl::App("vst_gui.html?...") —
trong devUrl (localhost:8000) cần route riêng vì file nằm /static/vst_gui.html."""
vst_gui_path = os.path.join(STATIC_DIR, "vst_gui.html")
if os.path.exists(vst_gui_path):
return FileResponse(vst_gui_path, media_type="text/html")
return HTMLResponse(content="<h1>vst_gui.html not found</h1>", status_code=404)
@app.get("/favicon.svg")
async def get_favicon():
favicon_path = os.path.join(settings.TEMPLATES_DIR, "favicon.svg")