Nonlinear Programming Methods
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

arraybuffer-to-audiobuffer

0.0.5 • Public • Published

arraybuffer-to-audiobuffer

Convert ArrayBuffer to AudioBuffer

Install

npm install arraybuffer-to-audiobuffer

Usage

Pass ArrayBuffer as first argument.

Takes an optional AudioContext as second argument, otherwise it'll create a new AudioContext.

Returns Promise which resolves to AudioBuffer.

const arrayBufferToAudioBuffer = require('arraybuffer-to-audiobuffer')
 
arrayBufferToAudioBuffer(arrayBuffer, audioContext)
.then(audioBuffer => {
  // do something with AudioBuffer
})

License

MIT

Install

npm i arraybuffer-to-audiobuffer

DownloadsWeekly Downloads

5

Version

0.0.5

License

MIT

Unpacked Size

4.31 kB

Total Files

5

Last publish

Collaborators

  • avatar