fix(render): resolve VSTi offline qua plugin_dirs user + plugin_path schema

_resolve_instrument dùng PluginManager() chỉ scan VST_DIR mặc định -> VSTi
trong thư mục user (vd Steinberg\VSTPlugins\DUNE 3.dll) 404 -> render_engine
fallback oscillator synth -> bounce sai tiếng. Dùng get_plugin_manager()
(gộp plugin_dirs user) + resolve_plugin_path (lưới an toàn, chặn ext lạ).
render_offline nhận plugin_path từ schema synth_engine.plugin_path ưu tiên.
This commit is contained in:
2026-08-25 09:24:55 +07:00
parent dd17f87e4e
commit 51d948fdc9
2 changed files with 24 additions and 4 deletions
+1
View File
@@ -624,6 +624,7 @@ class PythonRenderEngine:
preset_data_b64=se2.get("preset_data") or track.get("preset_data"),
soundfont_bank=soundfont_bank,
soundfont_program=soundfont_program,
plugin_path=se2.get("plugin_path") or track.get("plugin_path"),
)
synth_buffer, _ = sf.read(out_path, dtype="float32")
if synth_buffer.ndim == 1: