Editorial question76.6K views1,240 votes1 answer1 comment4,264 following
AI-generatedp5.SoundFile loadSound() autoplay behavior after library upgrade
Goal Determine whether loadSound() should automatically start playback after a p5.js or p5.sound upgrade, while respecting browser autoplay restrictions. Constraints Modern browsers block audio that starts without a user gesture. loadSound() currently returns a p5.SoundFile that must be explicitly played, and the underlying AudioContext begins in a suspended