FIX: ensureMasteringRouting gọi getAudioContext() trước — preview đầu tiên cũng sync mastering routing
This commit is contained in:
@@ -20867,7 +20867,11 @@ const App = () => {
|
||||
const ensureMasteringRouting = () => {
|
||||
try {
|
||||
const _s = window.currentMasteringSettings;
|
||||
if (!_s || !masterBus || !audioCtx) return;
|
||||
if (!_s) return;
|
||||
// Đảm bảo audioCtx + masterBus đã tồn tại trước khi sync (lần preview
|
||||
// đầu tiên audio chưa init → getAudioContext tạo ngay)
|
||||
getAudioContext();
|
||||
if (!masterBus || !audioCtx) return;
|
||||
toggleMasteringOnMaster(!!_s.masterConnected, !!_s.isBypassed);
|
||||
applyMasteringSettings(_s);
|
||||
updateSfRouting();
|
||||
|
||||
Reference in New Issue
Block a user