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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user