antiboredom / p5.vscode

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

Console/Audio issue: The AudioContext was not allowed to start. #34

Closed zumatt closed 2 years ago

zumatt commented 2 years ago

There is an error that prevent to use p5.sound.min.js I fix it putting in the file this line of code: function touchStarted() {if (getAudioContext().state !== 'running') {getAudioContext().resume();}}

antiboredom commented 2 years ago

Hi - I think this might be an issue with p5 sound and night with this extensions, so you should file the issue on their page: https://github.com/processing/p5.js

Best, Sam