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.0 to 2.0.1

10

index.js

@@ -325,3 +325,3 @@ /**

//delete N samples from any position
AudioBufferList.prototype.delete = function (offset, count) {
AudioBufferList.prototype.remove = function (offset, count) {
if (count == null) {

@@ -359,2 +359,8 @@ count = offset

//delete samples from the list, return self
AudioBufferList.prototype.delete = function () {
this.remove.apply(this, arguments)
return this
}
//remove N sampled from the beginning

@@ -465,3 +471,3 @@ AudioBufferList.prototype.consume = function consume (size) {

this.delete(from, to-from)
this.remove(from, to-from)

@@ -468,0 +474,0 @@ this.insert(from, sublist)

2

package.json
{
"name": "audio-buffer-list",
"version": "2.0.0",
"version": "2.0.1",
"description": "Data structure for sequence of AudioBuffers",

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

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

### `list.remove(offset=0, count)`
Remove number of samples from the list starting at the `offset`. `count` can possibly be negative, then items are removed on the left side from the offset. `offset` can also be negative, meaning to remove from the end. Retuns removed sublist instance.
### `list.delete(offset=0, count)`
Delete number of samples starting at the `offset`. `count` can possibly be negative, then items are deleted on the left side from the offset. `offset` can also be negative, meaning to start from the end. Retuns deleted _AudioBufferList_.
Same as `list.remove`, but returns current list with deleted part being lost. That allows for different type of chainability.
### `list.consume(count)`
Delete data from the beginning.
Delete data from the beginning. Returns current list.

@@ -102,11 +106,11 @@ ### `list.slice(start=0, end=-0)`

Iterate over buffers from the indicated range. Buffers can be modified in-place during the iterating. Return `false` to break loop. Pass `{reversed: true}` as the last argument to iterate in reverse order.
Iterate over buffers from the indicated range. Buffers can be modified in-place during the iterating. Return `false` to break the loop. Pass `{reversed: true}` as the last argument to iterate in reverse order.
### `list.reverse(start=0, end=-0)`
Reverse part of the list.
Reverse indicated part of the list. Modifies list in place, returns self.
### `list.repeat(count)`
Repeats contents of the list specified number of times. Modifies list in-place.
Repeats contents of the list specified number of times. Modifies list in-place, returns self.

@@ -131,7 +135,7 @@ ### `list.getChannelData(channel, from=0, to=-0)`

Split list at the indicated indexes, that just increases number of inner buffers and that's it.
Split list at the indicated indexes. That increases number of inner buffers and that's it.
### `list.join(start=0, end=-0)`
Joins fragments for the indicated range together.
Joins buffers from the indicated range.

@@ -138,0 +142,0 @@ ### `list.destroy()`

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