HTML audio: Difference between revisions

Content deleted Content added
Web Audio API: mention W3C Audio group's consideration of MediaStream Processing API, improve citations
Web Audio API: mention Firefox deprecated Audio Data API, and JS libs that supports both
Line 46:
|}
 
==Web Audio APIAPIs==
The [[Web Audio API]] specification developed by [[Google]] describes a high-level JavaScript API for processing and synthesizing audio in web applications. The primary paradigm is of an audio routing graph, where a number of AudioNode objects are connected together to define the overall audio rendering. The actual processing will primarily take place in the underlying implementation (typically optimized Assembly / C / C++ code), but direct JavaScript processing and synthesis is also supported.<ref>{{cite web | url=https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | title=Web Audio API |author=Chris Rogers |date=2012-03-15 |publisher=[[W3C]] |archiveurl=http://www.w3.org/TR/2012/WD-webaudio-20120315/ |archivedate=2012-03-15 |accessdate=2012-07-04}}</ref>
[[Google Chrome|Google's Chrome browser]] implements this API since version 14, released in 2011.<ref>{{cite web | url=http://www.webmonkey.com/2011/09/chrome-14-adds-better-audio-native-client-support/ | title=Chrome 14 Adds Better Audio, ‘Native Client’ Support |author=Scott Gilbertson |date=2011-09-19 |work=[[Webmonkey]] |publisher=[[Wired]] |accessdate=2012-07-04}}</ref>
 
The [http://www.w3.org/2011/audio/[Firefox_4|Mozilla's W3CFirefox Audiobrowser]] Workingimplements Group]a issimilar alsoAudio consideringData theAPI MediaStreamextension Processingsince APIversion specification4, developedreleased byin 2011, but [[Mozilla]] warns it is non-standard and deprecated.<ref>{{cite web |url=httphttps://wwwdeveloper.w3mozilla.org/2011/audio/drafts/1WDen/Introducing_the_Audio_API_Extension |title=Introducing the Audio API 1.0extension |date=20112012-1103-0705 |work=[[Mozilla Developer Network]] |publisher=[[W3CMozilla]] |archiveurl=https://developer.mozilla.org/index.php?title=en/Introducing_the_Audio_API_Extension&revision=25 |archivedate=2012-03-05 |accessdate=2012-07-04}}</ref>
Some JavaScript audio processing and synthesis libraries such as [http://oampo.github.com/Audiolet/ Audiolet] support both APIs.
 
The [http://www.w3.org/2011/audio/ W3C Audio Working Group] is also considering the MediaStream Processing API specification developed by [[Mozilla]].<ref>{{cite web |url=http://www.w3.org/TR/audioproc/ |title=Audio Processing API |author= |date=2011-12-15 |publisher=[[W3C]] |archiveurl=http://www.w3.org/TR/2011/WD-audioproc-20111215// |archivedate=2011-12-15 |accessdate=2012-07-04}}</ref>
In addition to audio mixing and processing, it covers more general media streaming, including synchronization with HTML elements, capture of audio and video streams, and peer-to-peer routing of such media streams.<ref>{{cite web |url=http://www.w3.org/TR/2012/NOTE-streamproc-20120531/ |title=MediaStream Processing API |author=Robert O'Callahan |date=2012-05-31 |publisher=[[W3C]] |accessdate=2012-07-04}}</ref>