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

audio-buffer

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-buffer - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

10

index.js

@@ -64,5 +64,5 @@ /**

//channels data is cached as subarrays
this._channelsData = []
this._channelData = []
for (var c = 0; c < this.numberOfChannels; c++) {
this._channelsData.push(this._data.subarray(c * this.length, (c+1) * this.length ))
this._channelData.push(this._data.subarray(c * this.length, (c+1) * this.length ))
}

@@ -88,3 +88,3 @@ }

return this._channelsData[channel]
return this._channelData[channel]
};

@@ -98,3 +98,3 @@

if (startInChannel == null) startInChannel = 0;
var data = this._channelsData[channelNumber]
var data = this._channelData[channelNumber]
for (var i = startInChannel, j = 0; i < this.length && j < destination.length; i++, j++) {

@@ -110,3 +110,3 @@ destination[j] = data[i];

AudioBuffer.prototype.copyToChannel = function (source, channelNumber, startInChannel) {
var data = this._channelsData[channelNumber]
var data = this._channelData[channelNumber]

@@ -113,0 +113,0 @@ if (!startInChannel) startInChannel = 0;

{
"name": "audio-buffer",
"version": "4.0.0",
"version": "4.0.1",
"description": "AudioBuffer class for node/browser",

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