var name
This commit is contained in:
parent
b1090a1dd8
commit
9e233fe587
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue