audio-loader
audio-loader copied to clipboard
Stream interface
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
.