fix: MIDI preview dừng file cũ khi click file midi khác
This commit is contained in:
@@ -9361,6 +9361,9 @@ const MediaExplorerPanel = ({ height }) => {
|
||||
}
|
||||
if (rafRef.current) cancelAnimationFrame(rafRef.current);
|
||||
rafRef.current = null;
|
||||
if (window.SonicSF && typeof window.SonicSF.stopAll === 'function') {
|
||||
try { window.SonicSF.stopAll(); } catch (e) {}
|
||||
}
|
||||
setIsPlaying(false);
|
||||
setIsPaused(false);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user