V44: fix crackle - uu tien audio thread bridge (HIGHEST) + FILL 24 (cushion ~90ms) PDC 7936

This commit is contained in:
2026-08-28 17:22:50 +07:00
parent 8990f04357
commit 2afa828c8f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2165,7 +2165,7 @@ function fxRtStop(silent) {
// ≈ 1792) + FILL buffer 16 block (4096) = 23 block ≈ 5888 (~123ms @48k). Giữ
// đồng bộ với sf-fx-realtime.js. FX_RT_START_EST_MS: ước lượng khởi đầu khi
// chưa có phép đo (fx_play_first) — dùng cho freeze playhead thay V39 0.31s.
const FX_RT_ROUNDTRIP_SAMPLES = 5888;
const FX_RT_ROUNDTRIP_SAMPLES = 7936;
const FX_RT_START_EST_MS = 450;
// G3: anchor processed — playhead = startOffset + (processed - anchor - latency)/sr
// (da tru latency -> bam vi tri mau NGHE DUOC; pre-roll tu giu tai startOffset —