More bug fixes

This commit is contained in:
Nikita 2025-10-24 19:21:34 +03:00
parent 03d2f363f1
commit fc74dcdb1a
2 changed files with 25 additions and 28 deletions

View file

@ -15,6 +15,7 @@ import {
resetLoadedSounds,
initAudioOnFirstClick,
resetDefaults,
initAudio,
} from '@strudel/webaudio';
import { setVersionDefaultsFrom } from './util.mjs';
import { StrudelMirror, defaultSettings } from '@strudel/codemirror';
@ -217,7 +218,14 @@ export function useReplContext() {
maxPolyphony,
multiChannelOrbits,
downloadName,
).finally(() => {
).finally(async () => {
const { latestCode, maxPolyphony, audioDeviceName, multiChannelOrbits } = settingsMap.get()
await initAudio({
latestCode,
maxPolyphony,
audioDeviceName,
multiChannelOrbits
})
editorRef.current.repl.scheduler.stop();
});
};