This repository was archived by the owner on Sep 22, 2021. It is now read-only.
This repository was archived by the owner on Sep 22, 2021. It is now read-only.
Failing to instantiate a Writer/Writable object #15
Open
Description
Hi. I'm testing out this package on the browser. My plan is to use it to facilitate my use of socket.io in sending audio data to the client from a server to be played. I'm unable to create an instance of either Writer/Writable.
import {Writer} from 'web-audio-stream'
const ctx = new AudioContext()
const write = Writer(ctx.destination, {samplesPerFrame: 1024})
I'm simply replicating the code from the README and yet I'm getting:
ERROR
Argument should be an AudioBuffer instance.
at validate (index.js:76)
at Object.pad (index.js:365)
at shift (write.js:128)
at ScriptProcessorNode.<anonymous> (write.js:154)
Am I doing something wrong here? Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels