universal-audio
v1.0.0
Published
A universal implementation of the Web Audio API
Maintainers
Readme
Universal Audio
A universal implementation of the Web Audio API. Can be used in browsers or in Node. The Node implementation of the API is built on bindings to the Rust implementation of Web Audio.
Install
npm install --save universal-audioUsage
As a ponyfill (imports locally):
// Using ES6 modules with Babel or TypeScript
import { AudioContext } from 'universal-audio'
// Using CommonJS modules
const { AudioContext } = require('universal-audio')As a polyfill (installs globally):
// Using ES6 modules
import 'universal-audio/polyfill'
// Using CommonJS modules
require('universal-audio/polyfill')