Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-rms

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-rms - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc