0.3.0 • Published 9 years ago

@mohayonao/web-audio-api-shim v0.3.0

Weekly downloads
305
License
MIT
Repository
github
Last release
9 years ago

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

ShimChromeOperaFirefoxSafari
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