V45.7: fix SF2 load fail fallback — catch bridgeLoad 404 so GM fallback runs
This commit is contained in:
@@ -7398,7 +7398,9 @@ const loadAnyTrackToBridge = async (track) => {
|
||||
const s0 = ((pl && pl.soundfonts) || []).find(s => String(s.id).replace('sf_', '') === sfId);
|
||||
bpath = s0 && (s0.file || s0.path);
|
||||
} catch (e) {}
|
||||
let r = await window.SonicAPI.bridgeLoad({ name: inst, path: bpath || null, instrumentType: 'SF2', channel: bch });
|
||||
let r = null;
|
||||
try { r = await window.SonicAPI.bridgeLoad({ name: inst, path: bpath || null, instrumentType: 'SF2', channel: bch }); }
|
||||
catch (e) { console.warn('[Bridge] SF2 bridgeLoad fail (fallback):', inst, e); }
|
||||
let p = r && r.path ? r.path : null;
|
||||
if (!p) {
|
||||
// FALLBACK: soundfont id KHÔNG tồn tại trong thư viện (AI prompt mặc
|
||||
|
||||
Reference in New Issue
Block a user