Comparing version 2.0.1 to 2.0.2
@@ -24,11 +24,6 @@ var inherits = require('util').inherits | ||
this._processAudio = function (e) { | ||
var rmsL = 0 | ||
var rmsR = 0 | ||
var inputL = e.inputBuffer.getChannelData(0) | ||
var inputR = e.inputBuffer.getChannelData(1) | ||
rmsL = Math.max(rms(inputL), lastL * smoothing) | ||
rmsR = Math.max(rms(inputR), lastR * smoothing) | ||
var rmsL = Math.max(rms(inputL), lastL * smoothing) | ||
var rmsR = Math.max(rms(inputR), lastR * smoothing) | ||
if (rmsL !== lastL || rmsR !== lastR) { | ||
@@ -35,0 +30,0 @@ self.push([rmsL, rmsR]) |
{ | ||
"name": "audio-rms", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Connect a Web Audio API AudioNode and stream out the realtime RMS audio level.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4351
70