default hydra config without audio detection

This commit is contained in:
Ámbar Tenorio Fornés 2023-11-24 12:21:04 +01:00
parent 9045ce05da
commit 508a6c92b2

View file

@ -11,7 +11,7 @@ function appendCanvas(c) {
return testCanvas; return testCanvas;
} }
export async function initHydra(options = {}) { export async function initHydra(options = {detectAudio: false}) {
//load and init hydra //load and init hydra
if (!document.getElementById('hydra-canvas')) { if (!document.getElementById('hydra-canvas')) {
const { src = 'https://unpkg.com/hydra-synth', ...opts } = options; const { src = 'https://unpkg.com/hydra-synth', ...opts } = options;