pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

Unable to use the sound library #14

Closed RayPS closed 5 years ago

RayPS commented 5 years ago
  mic = new p5.AudioIn();
  mic.start();
...
  mic.getLevel();
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
draw(): Cannot read property 'getLevel' of undefined
pixelkind commented 5 years ago

Actually I worked on this and forgot to write some feedback here. Sorry for that. Seems like a codec problem in the electron environment. So sadly I'll have to remove the sound support.

RayPS commented 5 years ago

Agreed, thanks for all the works