Skip to content

OpenDAWN/web-audio-api-shim

 
 

Repository files navigation

web-audio-api-shim

Build Status NPM Version Dependency Status License

shim for legacy Web Audio API

Specification

Installation

npm:

npm install @mohayonao/web-audio-api-shim

You can choose two versions that are named full or light. The light version installs easy polyfills only.

// install full version
require("@mohayonao/web-audio-api-shim");

// install light version
require("@mohayonao/web-audio-api-shim/light");

downloads:

Implemented

  • AnalyserNode#getFloatTimeDomainData
  • AudioBuffer#copyFromChannel
  • AudioBuffer#copyToChannel
  • AudioContext#createStereoPanner
  • AudioContext#decodeAudioData
  • OfflineAudioContext#startRendering

The below API are excluded in the light version.

  • AudioContext#close
  • AudioContext#resume
  • AudioContext#suspend
  • AudioNode#disconnect

Not Implemented

  • AudioContext#createAudioWorker

API Supports

Shim Shim L Chrome Opera Firefox Safari
getFloatTimeDomainData 🆗 🆗 🆗 37 🆗 22 🆗 30 ❌ 9
copyFromChannel 🆗 🆗 🆗 43 🆗 30 🆗 27 ❌ 9
copyToChannel 🆗 🆗 🆗 43 🆗 30 🆗 27 ❌ 9
createAudioWorker ❌ 46 ❌ 33 ❌ 42 ❌ 9
createStereoPanner 🆗 🆗 🆗 41 🆗 28 🆗 37 ❌ 9
decodeAudioData 🆗 🆗 ❌ 46 ❌ 33 🆗 36 ❌ 9
close 🆗 🆗 42 🆗 29 🆗 40 🆗 9
suspend 🆗 🆗 41 🆗 28 🆗 40 🆗 9
resume 🆗 🆗 41 🆗 28 🆗 40 🆗 9
startRendering 🆗 🆗 🆗 42 🆗 29 🆗 37 ❌ 9
disconnect 🆗 🆗 43 🆗 30 ❌ 42 ❌ 9

Online test suites

License

  • MIT

Packages

No packages published

Languages

  • JavaScript 91.7%
  • HTML 8.3%