New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

audio-buffer

Package Overview
Dependencies
Maintainers
2
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 2.3.2 to 2.3.3

19

index.js

@@ -32,6 +32,8 @@ /**

if (sampleRate != null) this.sampleRate = sampleRate;
else if (isBrowser) this.sampleRate = AudioBuffer.context.sampleRate;
if (channels != null) this.numberOfChannels = channels;
}
//if AudioBuffer(number) = create new array
//if AudioBuffer(channels?, number, rate?) = create new array
//this is the default WAA-compatible case
if (typeof data === 'number') {

@@ -122,10 +124,2 @@ this.data = [];

/**
* Default params
*/
AudioBuffer.prototype.numberOfChannels = 2;
AudioBuffer.prototype.sampleRate = 44100;
/** Type of storage to use */

@@ -144,2 +138,9 @@ AudioBuffer.FloatArray = Float32Array;

/**
* Default params
*/
AudioBuffer.prototype.numberOfChannels = 2;
AudioBuffer.prototype.sampleRate = AudioBuffer.context.sampleRate || 44100;
/**
* Return data associated with the channel.

@@ -146,0 +147,0 @@ *

{
"name": "audio-buffer",
"version": "2.3.2",
"version": "2.3.3",
"description": "Audio data container",

@@ -50,3 +50,2 @@ "main": "index.js",

"audio-speaker": "^1.1.3",
"browserify": "^12.0.1",
"inherits": "^2.0.1",

@@ -53,0 +52,0 @@ "is-typedarray": "^1.0.0",

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