Hey ive using the Audio lib for my shooter game but at several times the sounds crashes my game (on mac and iphone) seems the sound is the Problem if i only load the shoot sound, the browser Crashes after a while.
i make this:
shoot = loadSound(‘assets/sound/shoot.mp3’);
function shoot() {
shoot.play();
}
function keyPressed(e) {
if (key === ’ ') {
shoot();
}
}