audio-loader icon indicating copy to clipboard operation
audio-loader copied to clipboard

Stream interface

Open dy opened this issue 8 years ago • 0 comments

This is mostly @audiojs issue, but I imagine cases where we don’t actually have complete buffer, but can get sequence of chunks. Example — soundcloud streams, or <audio> tag converted by web-audio-stream.

API seems to be similar to audio-loader in functional case:

let load = Loader(url);
load((err, chunk) => {}); 

Why it is tempting, it allows for listening soundcloud in terminal (in case if we make CLI for audio-components):

load url | speaker

Mb I really should address that to a separate module, like audio-load.

dy avatar Sep 15 '16 20:09 dy