feat: open native VST FX GUI from mastering panel + FX rack (bridge --open-fx-gui)

This commit is contained in:
2026-08-17 21:52:40 +07:00
parent b261eb0d7e
commit 38f4cbd8b5
7 changed files with 313 additions and 10 deletions
+8
View File
@@ -638,6 +638,14 @@ int main(int argc, char* argv[]) {
}
if (!scanDir.empty()) return run_scan_dir(scanDir);
// --open-fx-gui <job.json>: one-shot native editor window for a VST3 FX
// (Mastering/FX Rack → "mở VST GUI"); runs until the user closes it.
std::string fxGuiJob;
for (int i = 1; i + 1 < argc; ++i) {
if (std::strcmp(argv[i], "--open-fx-gui") == 0) fxGuiJob = argv[i + 1];
}
if (!fxGuiJob.empty()) return run_open_fx_gui(fxGuiJob);
// 1. Shared memory name: argv --shm <name> | env SF_SHM_NAME | default
std::string shmName = "SonicForge_DAW_IPC";
for (int i = 1; i + 1 < argc; ++i) {