Editorial question76.6K views2,762 votes0 answers2,809 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