Node.js module for mixing multiple PCM streams into one.
Go to file
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
example fixed funny file permissions at example1.mp3 2014-01-01 03:34:06 +00:00
lib Stop trying to read if no inputs are connected 2016-08-07 14:44:24 +08:00
.gitignore Implement int24 for bitDepth24 2015-12-09 15:45:19 +01:00
index.js outlining the mixer object 2013-12-30 10:50:54 +00:00
LICENSE Initial commit 2013-12-30 00:32:00 -08:00
package.json Implement int24 for bitDepth24 2015-12-09 15:45:19 +01:00
README.md No more TODO 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!)