@mohayonao/web-audio-api-shim

0.3.0 • Public • Published

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 🆗 🆗 37 🆗 22 🆗 30 8
copyFromChannel 🆗 🆗 43 🆗 30 🆗 27 8
copyToChannel 🆗 🆗 43 🆗 30 🆗 27 8
createAudioWorker 43 30 38 8
createStereoPanner 🆗 🆗 41 🆗 28 🆗 37 8
decodeAudioData 🆗 43 30 🆗 36 8
close 🆗 🆗 42 🆗 29 38 8
suspend 🆗 🆗 41 🆗 28 38 8
resume 🆗 🆗 41 🆗 28 38 8
startRendering 🆗 🆗 42 🆗 29 🆗 37 8
disconnect 🆗 🆗 43 🆗 30 38 8

Online test suites

License

  • MIT

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

9

Version

0.3.0

License

MIT

Last publish

Collaborators

  • mohayonao