antiboredom / p5.vscode

A VS Code extension to generate new p5.js project files.
Other
56 stars 16 forks source link

p5.sound.js not working - unrelated ignore this #59

Closed AlexMuresan closed 1 year ago

AlexMuresan commented 1 year ago

I've downloaded the p5.sound.jsand added it to the index.html and I'm still getting the following error:

It makes no difference wether I have it or not even though I see p5.sound.min.jsis already included.

Code to reproduce issue

let soundFile, analyzer, delay;

function preload() {
  soundFormats('ogg', 'mp3');
  soundFile = loadSound('./water_bloop_2.mp3');
}

function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
}