Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Audio vs AudioContext

If I would need to use and audio API in HTML5 right now, which one should I use? I see two APIs available: Audio API and Web Audio API.

Based on this documentation from MDN, the Audio API seems to be deprecated, is that correct? Is it deprecated only in Firefox and Chrome?

What happens with Internet Explorer?

More info about Web Audio API:

http://webaudio.github.io/web-audio-api/

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API

like image 450
margabit Avatar asked Sep 03 '14 20:09

margabit


1 Answers

For playing audio from computed samples I think AudioContext.createBuffer() is great. No support in IE 11 but in Edge and the others.

like image 97
David Jonsson Avatar answered Sep 23 '22 20:09

David Jonsson