promise-decode-audio-data

0.4.1 • Public • Published

< Promise > decodeAudioData

Build Status NPM Version License

Promise-based decodeAudioData for legacy Web Audio API

Specification

https://www.w3.org/TR/webaudio/

Native API supports

Support
Firefox
Chrome 49+
Older Chrome versions
Opera
Safari
Edge Unknown
Internet Explorer ❌ No Web Audio API

See here for full details.

Installation

npm install promise-decode-audio-data

downloads

API

  • AudioContext.prototype.decodeAudioData(audioData: ArrayBuffer): Promise<AudioBuffer>

Example

var audioContext = new AudioContext();
 
audioContext.decodeAudioData(audioData).then(function(decodedData) {
  // use the decoded data here
});

License

MIT

Package Sidebar

Install

npm i promise-decode-audio-data

Weekly Downloads

193

Version

0.4.1

License

MIT

Last publish

Collaborators

  • mohayonao