audio-buffer
Advanced tools
Comparing version 4.0.0 to 4.0.1
10
index.js
@@ -64,5 +64,5 @@ /** | ||
//channels data is cached as subarrays | ||
this._channelsData = [] | ||
this._channelData = [] | ||
for (var c = 0; c < this.numberOfChannels; c++) { | ||
this._channelsData.push(this._data.subarray(c * this.length, (c+1) * this.length )) | ||
this._channelData.push(this._data.subarray(c * this.length, (c+1) * this.length )) | ||
} | ||
@@ -88,3 +88,3 @@ } | ||
return this._channelsData[channel] | ||
return this._channelData[channel] | ||
}; | ||
@@ -98,3 +98,3 @@ | ||
if (startInChannel == null) startInChannel = 0; | ||
var data = this._channelsData[channelNumber] | ||
var data = this._channelData[channelNumber] | ||
for (var i = startInChannel, j = 0; i < this.length && j < destination.length; i++, j++) { | ||
@@ -110,3 +110,3 @@ destination[j] = data[i]; | ||
AudioBuffer.prototype.copyToChannel = function (source, channelNumber, startInChannel) { | ||
var data = this._channelsData[channelNumber] | ||
var data = this._channelData[channelNumber] | ||
@@ -113,0 +113,0 @@ if (!startInChannel) startInChannel = 0; |
{ | ||
"name": "audio-buffer", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "AudioBuffer class for node/browser", | ||
@@ -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
8209