running sound.play more than 20 times slows browser to a crawl

edited January 2016 in p5.js Library Questions

Hallo. Just wondering if there's a trick to get multiple sound effects to play at once. I'm playing the same sound effect one time every time a creature hits a wall (which happens a lot). Even though the sound effect is less than a second, after about 20 sound.plays, FireFox slows to a crawl... even after all of sounds have stopped playing. It's like all the memory gets eaten up and is not released. I'm figuring there's some kind of memory release I need to specify?

thx.

Answers

Sign In or Register to comment.