@stayradiated/web-audio

2.0.1 • Public • Published

@stayradiated/web-audio

So you want the power of the Web Audio API but with support for streaming audio files? Then this library is for you.

Todo

  • Find out which browsers support ReadableStreams, because this library depends on them.

API Docs

This is just an example of how to use the library at the moment:

import WebAudioStream from '@stayradiated/web-audio'

const stream = new WebAudioStream({
  context: new window.AudioContext(),
})

stream.loadSource('/files/audio.mp3')
stream.play()

console.log(stream.audioSource) // underlying audio source

Readme

Keywords

none

Package Sidebar

Install

npm i @stayradiated/web-audio

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • stayradiated