audio-buffer-list
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -38,3 +38,3 @@ /** | ||
//AudioBuffer interface | ||
AudioBufferList.prototype.numberOfChannels = 0 | ||
AudioBufferList.prototype.numberOfChannels = 2 | ||
AudioBufferList.prototype.sampleRate = null | ||
@@ -118,3 +118,3 @@ | ||
} | ||
else if (isAudioBuffer(buf)) { | ||
else if (isAudioBuffer(buf) && buf.length) { | ||
this._appendBuffer(buf) | ||
@@ -127,4 +127,4 @@ } | ||
} | ||
//create AudioBuffer from arg | ||
else if (buf != null) { | ||
//create AudioBuffer from (possibly num) arg | ||
else if (buf) { | ||
buf = new AudioBuffer(this.numberOfChannels || 2, buf) | ||
@@ -131,0 +131,0 @@ this._appendBuffer(buf) |
{ | ||
"name": "audio-buffer-list", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"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
24103