audiojs / audio

Class for high-level audio manipulations [NOT MAINTAINED]
MIT License
240 stars 9 forks source link

Make raw PCM data streamable? #11

Closed jamen closed 8 years ago

jamen commented 8 years ago

Would be useful for transformative functions, as well as audio devices. Might be a simple Readable wrapper.

jamen commented 8 years ago

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.