audio-sink
Triggers an event for received audio chunk and releases the data. If piped to somewhere, it turns into a pass-throught stream. That way, it is through2-sink and tap-stream in one. Use as a fast replacement for audio-speaker or audio-render.
Can function as a pressure controller. See example.
Usage
Direct
const Sink = ; let sink = ; //log data and invoke cb after 100ms;
Pull-stream
const pull = ;const sink = ;const generator = ; //stream generated data to sink with pressure control;
Stream
var Gen = ;var Sink = ; ;
Related
stream-sink — universal stream sink.
through2-sink — triggers an event for the data chunk, but does not pass data through.
tap-stream — triggers callback for the passed through data, but does not release data.