p5.js-sound icon indicating copy to clipboard operation
p5.js-sound copied to clipboard

Record Save Audio example broken

Open bendoesdata opened this issue 2 years ago • 0 comments

I have some code that uses p5.audioIn to record some input audio and then play it back. Started seeing some weird errors, so went back to the original p5 documentation example. When looking at the console, the Record Save Audio example is throwing the same error in the console that I am getting with my code:

TypeError: arraySequence[channel] is undefined

followed by...

Uncaught DOMException: BaseAudioContext.createBuffer: Length (0) is out of range

followed by...

Uncaught not ready to play file, buffer has yet to load. Try preload()

No audio appears to be recorded when clicking. I verified this same error happens in both Firefox and Chrome.

I can post my custom code as well if it's helpful for debugging purposes, but since it is also happening on the Example page, it seems to be a higher level problem in the p5.Sound library.

bendoesdata avatar Jul 30 '22 18:07 bendoesdata