3 ms·
Has the Web Audio API improved dramatically in just the past two years? From what I had previously read [1], it seemed like a disaster. [1]: https://chadaustin
by mwcampbell 10y ago
Has the Web Audio API improved dramatically in just the past two years? From what I had previously read [1], it seemed like a disaster.
[1]: https://chadaustin.me/2014/09/web-platform-limitations-part-2-web-audio-api-is-a-mess/ https://chadaustin.me/2014/09/web-platform-limitations-part-...
- MatthewRayfield 10y agoI've been working quite a bit with the Web Audio API recently (building a modular soft-synth), and I can confirm that it is a bit wonky, but ultimately more powerful than one might expect. There are lots of little oddities that I had to research or discover to get the API to do what I want. For example, dynamic sound generation nodes will not run in certain circumstances where the system believes they are unattached from the audio output. These nodes also have a bad habit of garbage collecting their event listener functions. Performance is definitely an issue as well, and I still get some audio tearing type pops and clicks despite quite a bit of optimization. I think some of these issues are due to that fact that the Web Audio API spec is still being worked out (https://webaudio.github.io/web-audio-api/ https://webaudio.github.io/web-audio-api/)! Some API components are deprecated in the newer versions of the spec, but have not been replaced in current browsers. Which leaves the API in a weird limbo state. BUT! All that said. I've been pushing the API pretty hard to build this modular synth and it is working admirably. I think a game engine would have an easier time getting it to do what is needed. I'm always amazed at what you can do in the browser these days, Web Audio API included.
- sss1024 10y agothe article is too old. Web Audio API is mature platform now in 2016. See http://molgav.nn.ru/rtfm/index.html http://molgav.nn.ru/rtfm/index.html for example. Molgav uses hundreds of instruments from guitar to piano, library of thousans of songs, it works on desktop and mobile.