FIX: ensureMasteringRouting gọi getAudioContext() trước — preview đầu tiên cũng sync mastering routing

This commit is contained in:
2026-08-10 06:04:32 +00:00
parent 025e0f03a2
commit 75795653c5
3 changed files with 12 additions and 6 deletions
+5 -1
View File
@@ -20867,7 +20867,11 @@ const App = () => {
const ensureMasteringRouting = () => {
try {
const _s = window.currentMasteringSettings;
if (!_s || !masterBus || !audioCtx) return;
if (!_s) return;
// Đm bo audioCtx + masterBus đã tn ti trưc khi sync (ln preview
// đu tiên audio chưa init getAudioContext to ngay)
getAudioContext();
if (!masterBus || !audioCtx) return;
toggleMasteringOnMaster(!!_s.masterConnected, !!_s.isBypassed);
applyMasteringSettings(_s);
updateSfRouting();