HTML Audio performance
Posted
by
user1888309
on Stack Overflow
See other posts from Stack Overflow
or by user1888309
Published on 2012-12-08T20:09:53Z
Indexed on
2012/12/08
23:04 UTC
Read the original article
Hit count: 265
I'm working on HTML drum machine, and I`ve met some performance issues, rhythm start to break if BPM is higher than 110 but I'm expecting to make it work on BPM over 180. I guess that it can be related with format or codec of audio files, however it also maybe that my code is not very optimised (as I can see from JS CPU profiling it's not). So I'm expecting you guys give me some code review or some hints on optimisation.
Although all similar projects I've found on internet didn't work good and maybe it's just restrictions of Audio API.
By the way, it's very raw and sounds works only on Chrome under Mac OS, so any advise on audio encoding for web also would be great
Screenshot of Groove which breaks
UPDATE
Ok, I've found that I was encoding audio files incorrectly, after fixing that rhythm stopped breaking, and also it started working in Mozilla. But still there are issues on windows OS.
© Stack Overflow or respective owner