@mohayonao/web-audio-api-shim

shim for legacy Web Audio API

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
312Sep 19, 2018Mar 20, 2015Minified + gzip package size for @mohayonao/web-audio-api-shim in KB

Readme

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 two versions full or light. The light version installs easy polyfills only.

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

// or

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

downloads:

Implemented

  • AnalyserNode#getFloatTimeDomainData

  • AudioBuffer#copyFromChannel

  • AudioBuffer#copyToChannel

  • AudioContext#createStereoPanner

  • AudioContext#decodeAudioData

  • OfflineAudioContext#startRendering

  • The below api exclude in light version

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

Not Implemented

  • AudioContext#createAudioWorker

Native API Supports

Shim Chrome Opera Firefox Safari
getFloatTimeDomainData :ok: :ok: 37 :ok: 22 :ok: 30 :x: 8
copyFromChannel :ok: :ok: 43 :ok: 30 :ok: 27 :x: 8
copyToChannel :ok: :ok: 43 :ok: 30 :ok: 27 :x: 8
createAudioWorker :x: :x: 43 :x: 30 :x: 38 :x: 8
createStereoPanner :ok: :ok: 41 :ok: 28 :ok: 37 :x: 8
decodeAudioData :ok: :x: 43 :x: 30 :ok: 36 :x: 8
close :ok: :ok: 42 :ok: 29 :x: 38 :x: 8
suspend :ok: :ok: 41 :ok: 28 :x: 38 :x: 8
resume :ok: :ok: 41 :ok: 28 :x: 38 :x: 8
startRendering :ok: :ok: 42 :ok: 29 :ok: 37 :x: 8
disconnect :ok: :ok: 43 :ok: 30 :x: 38 :x: 8

Online test suites

License

  • MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.