mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 03:28:33 +00:00
var name
This commit is contained in:
parent
b1090a1dd8
commit
9e233fe587
@ -175,8 +175,8 @@ export function getAudioContextCurrentTime() {
|
|||||||
let workletsLoading;
|
let workletsLoading;
|
||||||
function loadWorklets() {
|
function loadWorklets() {
|
||||||
if (!workletsLoading) {
|
if (!workletsLoading) {
|
||||||
const contextPromise = getAudioContext();
|
const audioCtx = getAudioContext();
|
||||||
workletsLoading = contextPromise.audioWorklet.addModule(workletsUrl);
|
workletsLoading = audioCtx.audioWorklet.addModule(workletsUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
return workletsLoading;
|
return workletsLoading;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user