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
shim for legacy Web Audio API
Specification
Installation
npm:
npm install @mohayonao/web-audio-api-shimYou 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#getFloatTimeDomainDataAudioBuffer#copyFromChannelAudioBuffer#copyToChannelAudioContext#createStereoPannerAudioContext#decodeAudioDataOfflineAudioContext#startRenderingThe below api exclude in light version
AudioContext#closeAudioContext#resumeAudioContext#suspendAudioNode#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