mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
getDestination collides with tone
-> do not export for now (not needed) -> can be refactored when tone is removed -> also prevent loading worklets in node
This commit is contained in:
parent
6dbb2cb98a
commit
ca82796081
@ -23,7 +23,7 @@ export const getAudioContext = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let destination;
|
let destination;
|
||||||
export const getDestination = () => {
|
const getDestination = () => {
|
||||||
const ctx = getAudioContext();
|
const ctx = getAudioContext();
|
||||||
if (!destination) {
|
if (!destination) {
|
||||||
destination = ctx.createGain();
|
destination = ctx.createGain();
|
||||||
@ -162,10 +162,12 @@ function getWorklet(ac, processor, params) {
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (typeof window !== 'undefined') {
|
||||||
loadWorklets();
|
try {
|
||||||
} catch (err) {
|
loadWorklets();
|
||||||
console.warn('could not load AudioWorklet effects coarse, crush and shape', err);
|
} catch (err) {
|
||||||
|
console.warn('could not load AudioWorklet effects coarse, crush and shape', err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const cutGroups = [];
|
const cutGroups = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user