I am developing an RTS game with boats, the boats can shoot very frequently and I am having a hard time dealing with the explosion sounds. I am using three.js and the audio API it has that uses the web audio API behind the scenes. The thing is I can't simply tell three.js to play each sound individually because the final sound stutters a lot.
What I am doing currently is grouping the sounds for each Xms and then making an average of the position of all explosions and setting the volume with K*N, where K is just some constant and N is the number of explosions.
The results are not very good. And I was wondering if there are other techniques I could use to handle that many equal sounds being played at the same time.
The game can be seen here: https://archpelagus.glmachado.com/