web-audio-api-shim
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:
- web-audio-api-shim.js
- web-audio-api-shim.min.js
- web-audio-api-shim-light.js
- web-audio-api-shim-light.min.js
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 |
|
|
|
|
|
copyFromChannel |
|
|
|
|
|
copyToChannel |
|
|
|
|
|
createAudioWorker |
|
|
|
|
|
createStereoPanner |
|
|
|
|
|
decodeAudioData |
|
|
|
|
|
close |
|
|
|
|
|
suspend |
|
|
|
|
|
resume |
|
|
|
|
|
startRendering |
|
|
|
|
|
disconnect |
|
|
|
|
Online test suites
License
- MIT