audio-buffer-list
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -434,4 +434,8 @@ /** | ||
else { | ||
if (toOffset[1]) { | ||
toOffset[0] += 1 | ||
toOffset[1] = 0 | ||
} | ||
let offset = from - fromOffset[1] | ||
for (let i = fromOffset[0], l = toOffset[0]+1; i < l; i++) { | ||
for (let i = fromOffset[0], l = toOffset[0]; i < l; i++) { | ||
let buf = this.buffers[i] | ||
@@ -438,0 +442,0 @@ let res = fn.call(this, buf, i, offset, this.buffers, this) |
{ | ||
"name": "audio-buffer-list", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Data structure for sequence of AudioBuffers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -93,3 +93,3 @@ # 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](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges) [![Greenkeeper badge](https://badges.greenkeeper.io/audiojs/audio-buffer-list.svg)](https://greenkeeper.io/) | ||
Map buffers of subpart of the list, defined by `from` and `to` arguments. Modifies list in-place. | ||
Map buffers of part of the list, defined by `from` and `to` arguments. Modifies list in-place. | ||
@@ -96,0 +96,0 @@ Mapper function has signature `(buffer, idx, offset) => buffer`. `buffer` is an audio buffer to process, `idx` is buffer number, and `offset` is first buffer sample absolute offset. If mapper returns `undefined`, the buffer is preserved. If mapper returns `null`, the buffer is discarded. If mapper returns `false`, iterations are stopped. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23072
459