Exporting a Processing sketch with audio to JavaScript
问题 How could I implement sound in my Processing sketch that works when I export the sketch to JavaScript? I've written a sketch in Processing that includes two audio (.wav) loops. These loops are played through the Movie class upon mousePressed() and mouseDragged() . The sketch works in normal/Java mode, but does not load when changed to JavaScript mode. The sketch only works in JavaScript mode when I remove the sound. I've noticed that other sketches that use the Movie class as well as sketch