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

audio-buffer-list

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-buffer-list - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

16

index.js

@@ -153,9 +153,11 @@ /**

AudioBufferList.prototype._appendBuffer = function (buf) {
// if (buf.sampleRate != this.sampleRate) throw Error('Required sample rate is ' + this.sampleRate + ', passed ' + buf.sampleRate)
this.buffers.push(buf)
this.length += buf.length
if (!buf) return this
// if (buf.numberOfChannels != this.numberOfChannels) throw Error('Required number of channels is ' + this.numberOfChannels + ', passed ' + buf.numberOfChannels)
//update channels count
this.numberOfChannels = Math.max(this.numberOfChannels, buf.numberOfChannels)
if (!this.buffers.length) {
this.numberOfChannels = buf.numberOfChannels
}
else {
this.numberOfChannels = Math.max(this.numberOfChannels, buf.numberOfChannels)
}
this.duration += buf.duration

@@ -166,2 +168,6 @@

//push buffer
this.buffers.push(buf)
this.length += buf.length
return this

@@ -168,0 +174,0 @@ }

{
"name": "audio-buffer-list",
"version": "2.0.6",
"version": "2.0.7",
"description": "Data structure for sequence of AudioBuffers",

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