Merge branch 'main' into documentation

This commit is contained in:
scrappy_fiddler 2026-01-11 12:18:42 +01:00
commit 20ea2980a2
4 changed files with 7 additions and 5 deletions

View file

@ -103,8 +103,10 @@ export async function renderPatternAudio(
}
export function webaudioRepl(options = {}) {
const audioContext = options.audioContext ?? getAudioContext();
setAudioContext(audioContext);
options = {
getTime: () => getAudioContext().currentTime,
getTime: () => audioContext.currentTime,
defaultOutput: webaudioOutput,
...options,
};