audio-buffer-list
Advanced tools
Comparing version 3.0.1 to 3.1.0
16
index.js
@@ -102,3 +102,3 @@ /** | ||
} | ||
else if (Array.isArray(buf)) { | ||
else if (Array.isArray(buf) && typeof buf[0] !== 'number') { | ||
for (var l = buf.length; i < l; i++) { | ||
@@ -154,2 +154,14 @@ this.append(buf[i]) | ||
AudioBufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { | ||
if (typeof dst === 'number') { | ||
srcEnd = srcStart; | ||
srcStart = dstStart | ||
dstStart = dst; | ||
dst = null; | ||
} | ||
if (srcEnd == null && srcStart != null) { | ||
srcEnd = srcStart | ||
srcStart = dstStart | ||
dstStart = 0 | ||
} | ||
if (typeof srcStart != 'number' || srcStart < 0) | ||
@@ -316,2 +328,4 @@ srcStart = 0 | ||
AudioBufferList.prototype.remove = function (offset, count) { | ||
if (!this.length) return null | ||
if (count == null) { | ||
@@ -318,0 +332,0 @@ count = offset |
{ | ||
"name": "audio-buffer-list", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Data structure for sequence of AudioBuffers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23037
452