V45.10: fix seek lag solo track - skip sink re-point on seek restart v=202608300814

This commit is contained in:
2026-08-30 08:14:42 +07:00
parent 6b18d25520
commit e57b9fade2
3 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -26181,7 +26181,7 @@ const App = () => {
const handlePause = () => {
if (isPlaying || subTabs.some(s => s.isPlaying)) stopAllPlayback(true);
};
const stopAllPlayback = (fade) => {
const stopAllPlayback = (fade, skipRouting) => {
try {
// D14: bỏ dip muteGain tại wrap (loop) — 5ms master→0.0001 mỗi vòng =
// âm beat 0:0 nhỏ hơn hẳn âm cuối pass (bug seam volume). Click seam giờ
@@ -26398,7 +26398,7 @@ const App = () => {
...s,
isPlaying: false
})));
updateSfRouting();
if (!skipRouting) updateSfRouting();
};
const seekPlaybackTo = (time) => {
const isSubTab = subTabs.some(sub => sub.id === activeTab);
@@ -26407,7 +26407,7 @@ const App = () => {
if (!st) return;
if (st.isPlaying) {
fxRtKeepForRestart = true; // restart/resume — giữ session FX realtime
stopAllPlayback();
stopAllPlayback(false, true);
window.SonicSF.stopAll();
stopAllNativeSfNotes(); stopAllNativeVstNotes();
setSubTabs(prev => prev.map(s => s.id === activeTab ? {
@@ -26432,7 +26432,7 @@ const App = () => {
} else {
if (isPlaying) {
fxRtKeepForRestart = true; // restart/resume — giữ session FX realtime
stopAllPlayback();
stopAllPlayback(false, true);
setCurrentTime(time);
startOffsetTimeRef.current = time;
startAudioTimeRef.current = getAudioContext().currentTime;
@@ -34639,7 +34639,7 @@ STRICT CONSTRAINTS:
if (!seekSt) return;
if (seekSt.isPlaying) {
fxRtKeepForRestart = true; // restart/resume — giữ session FX realtime
stopAllPlayback();
stopAllPlayback(false, true);
window.SonicSF.stopAll();
stopAllNativeSfNotes(); stopAllNativeVstNotes();
setSubTabs(prev => prev.map(s => s.id === seekSt.id ? { ...s, currentTime: clickTime, isPlaying: true } : s));
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -51,7 +51,7 @@
<script src="/static/js/services/promptTemplateManager.js?v=202608290945"></script>
<script src="/static/js/services/undoRedoEngine.js?v=202608290945"></script>
<script src="/static/js/services/chordTheory.js?v=202608290945"></script>
<script src="/static/js/app.precompiled.js?v=202608300750" defer></script>
<script src="/static/js/app.precompiled.js?v=202608300814" defer></script>
<link rel="stylesheet" href="/static/css/styles.css?v=202608290945">
<style>
:root {