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 1.2.1 to 1.3.0

19

index.js

@@ -260,11 +260,11 @@ /**

this.length -= this._bufs[0].length
this.duration -= this._bufs[0].duration
this._bufs.shift()
} else {
this._bufs[0] = util.slice(this._bufs[0], bytes)
//util.subbuffer would remain buffer in memory though it is faster
this._bufs[0] = util.subbuffer(this._bufs[0], bytes)
this.length -= bytes
this.duration -= this._bufs[0].duration
break
}
}
this.duration = this.length / this.sampleRate
return this

@@ -343,4 +343,4 @@ }

var offsets = this._offset(offset)
var leftBuf = offsets[1] ? util.slice(this._bufs[offsets[0]], 0, offsets[1]) : null
var rightBuf = offsets[1] !== this._bufs[offsets[0]].length ? util.slice(this._bufs[offsets[0]], offsets[1]) : null
var leftBuf = offsets[1] ? util.subbuffer(this._bufs[offsets[0]], 0, offsets[1]) : null
var rightBuf = offsets[1] !== this._bufs[offsets[0]].length ? util.subbuffer(this._bufs[offsets[0]], offsets[1]) : null

@@ -382,4 +382,4 @@ //convert any type of source to audio buffer list

//same segment slice
var leftBuf = offsetsLeft[1] ? util.slice(this._bufs[offsetsLeft[0]], 0, offsetsLeft[1]) : null;
var rightBuf = this._bufs[offsetsRight[0]].length !== offsetsRight[1] ? util.slice(this._bufs[offsetsRight[0]], offsetsRight[1]) : null;
var leftBuf = offsetsLeft[1] ? util.subbuffer(this._bufs[offsetsLeft[0]], 0, offsetsLeft[1]) : null;
var rightBuf = this._bufs[offsetsRight[0]].length !== offsetsRight[1] ? util.subbuffer(this._bufs[offsetsRight[0]], offsetsRight[1]) : null;

@@ -398,1 +398,6 @@ //delete buffers

}
//return new buffer by mapping it
AudioBufferList.prototype.map = function map (fn) {
return new AudioBufferList(this._bufs.map(fn))
}
{
"name": "audio-buffer-list",
"version": "1.2.1",
"version": "1.3.0",
"description": "Data structure for sequence of AudioBuffers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,4 +43,7 @@ # audio-buffer-list [![Build Status](https://travis-ci.org/audiojs/audio-buffer-list.svg?branch=master)](https://travis-ci.org/audiojs/audio-buffer-list) [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

### `list.map((buffer, index) => buffer)`
Create new list by mapping every buffer.
## [AudioBuffer](https://github.com/audiojs/audio-buffer) properties & methods

@@ -86,3 +89,3 @@

Return merged AudioBuffer representing indicated interval.
Return merged _AudioBuffer_ representing indicated interval.

@@ -89,0 +92,0 @@ ### `list.shallowSlice(start=0, end=-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