fix autoPlayed midi cannot be stopped

This commit is contained in:
josc146 2023-11-29 15:28:43 +08:00
parent b625b8a6d1
commit 34112c79c7

View File

@ -128,7 +128,9 @@ const CompositionPanel: FC = observer(() => {
});
updateNs(ns);
if (autoPlay) {
playerRef.current?.start();
setTimeout(() => {
playerRef.current?.start();
});
}
});
});