Chinmay Pendharkar 72d7965521 Stop trying to read if no inputs are connected
If no inputs are connected, the `_read` function still keeps looping ( using `setImmediate(this._read.bind(this));` ) to wait for more samples to be available. This can cause the CPU usage to go up (60% on my 2014 MBP) even when no audio is being played.

This fix stops the looping if `this.inputs` array is empty and starts it again when new inputs are connected.
2016-08-07 14:44:24 +08:00
2015-12-09 15:45:19 +01:00
2013-12-30 10:50:54 +00:00
2013-12-30 00:32:00 -08:00
2015-12-09 15:45:19 +01:00
2015-12-09 15:54:37 +01:00

audio-mixer

Node.js module for mixing multiple PCM streams into one.

Credits

The accordionist in example0.mp3 and example1.mp3 is my grandpa Halvard. (Hej, farfar!)

Description
Node.js module for mixing multiple PCM streams into one.
Readme 3 MiB
Languages
JavaScript 100%