Make raw PCM data streamable?
jamen opened this issue · 1 comments
jamen commented
Would be useful for transformative functions, as well as audio devices. Might be a simple Readable
wrapper.
jamen commented
I decided no, it is the plugins that should be the streams. For example:
fs.createReadStream('./foo.wav')
.pipe(decodeWav())
.pipe(speaker);
You can use Audio#write
and Audio#slice
asynchronously anyways.