Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

mohayonao/promise-decode-audio-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

< 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

About

Promise-based decodeAudioData for legacy Web Audio API

Resources

Stars

Watchers

Forks

Packages

No packages published