Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

mohayonao/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 ❌ 48 ❌ 35 ❌ 44 ❌ 9
createStereoPanner 🆗 🆗 🆗 41 🆗 28 🆗 37 ❌ 9
decodeAudioData 🆗 🆗 ❌ 48 ❌ 35 🆗 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 ❌ 44 ❌ 9

Online test suites

License

  • MIT