audio-buffer-list
Advanced tools
Comparing version 2.0.3 to 2.0.4
10
index.js
@@ -238,3 +238,3 @@ /** | ||
if (start == end) { | ||
return new AudioBufferList() | ||
return new AudioBufferList(0, this.numberOfChannels) | ||
} | ||
@@ -257,3 +257,3 @@ | ||
return new AudioBufferList(buffers) | ||
return new AudioBufferList(buffers, this.numberOfChannels) | ||
} | ||
@@ -263,3 +263,3 @@ | ||
AudioBufferList.prototype.clone = function clone (start, end) { | ||
var i = 0, copy = new AudioBufferList(), sublist = this.slice(start, end) | ||
var i = 0, copy = new AudioBufferList(0, this.numberOfChannels), sublist = this.slice(start, end) | ||
@@ -352,3 +352,3 @@ for (; i < sublist.buffers.length; i++) | ||
let deleted = this.buffers.splice(offsetLeft[0], offsetRight[0] - offsetLeft[0]) | ||
deleted = new AudioBufferList(deleted) | ||
deleted = new AudioBufferList(deleted, this.numberOfChannels) | ||
@@ -418,3 +418,3 @@ this.length -= deleted.length | ||
return new AudioBufferList(before.concat(middle).concat(after)) | ||
return new AudioBufferList(before.concat(middle).concat(after), this.numberOfChannels) | ||
} | ||
@@ -421,0 +421,0 @@ |
{ | ||
"name": "audio-buffer-list", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"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
24082