JSPM

@mohayonao/web-audio-api-shim

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q69364F
  • License MIT

shim for legacy Web Audio API

Package Exports

  • @mohayonao/web-audio-api-shim

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mohayonao/web-audio-api-shim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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 🆗 🆗 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