mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04: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:
@@ -23,7 +23,7 @@ export const getAudioContext = () => {
|
||||
};
|
||||
|
||||
let destination;
|
||||
export const getDestination = () => {
|
||||
const getDestination = () => {
|
||||
const ctx = getAudioContext();
|
||||
if (!destination) {
|
||||
destination = ctx.createGain();
|
||||
@@ -162,10 +162,12 @@ function getWorklet(ac, processor, params) {
|
||||
return node;
|
||||
}
|
||||
|
||||
try {
|
||||
loadWorklets();
|
||||
} catch (err) {
|
||||
console.warn('could not load AudioWorklet effects coarse, crush and shape', err);
|
||||
if (typeof window !== 'undefined') {
|
||||
try {
|
||||
loadWorklets();
|
||||
} catch (err) {
|
||||
console.warn('could not load AudioWorklet effects coarse, crush and shape', err);
|
||||
}
|
||||
}
|
||||
|
||||
const cutGroups = [];
|
||||
|
||||
Reference in New Issue
Block a user