promise-decode-audio-data

v0.1.1
Promise-based decodeAudioData for legacy Web Audio API
webaudioapi decodeaudiodata promise shim

< 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 :white_check_mark:
Chrome 49+ :white_check_mark:
Older Chrome versions :x:
Opera :x:
Safari :x:
Edge Unknown
Internet Explorer :x: 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

Metadata

  • Unknown
  • Whatever
  • nao yonamine
  • released 2/4/2015

Downloads

Maintainers