@soundtouchjs/audio-worklet
Advanced tools
Comparing version 0.1.16 to 0.1.17
Changelog | ||
### 0.1.17 (2023-03-14) | ||
### Bug Fixes | ||
* Correct early audio cutoff and handle single channel audio ([#20](https://github.com/cutterbl/soundtouchjs-audio-worklet/issues/20)) ([cee578f](https://github.com/cutterbl/soundtouchjs-audio-worklet/commit/cee578f807c8a564813f7461e3518c18c26cd742)) | ||
### 0.1.16 (2022-05-03) | ||
@@ -3,0 +10,0 @@ |
/* | ||
* SoundTouch Audio Worklet v0.1.16 AudioWorklet using the | ||
* SoundTouch Audio Worklet v0.1.17 AudioWorklet using the | ||
* SoundTouch audio processing library | ||
@@ -4,0 +4,0 @@ * |
/* | ||
* SoundTouch Audio Worklet v0.1.16 AudioWorklet using the | ||
* SoundTouch Audio Worklet v0.1.17 AudioWorklet using the | ||
* SoundTouch audio processing library | ||
@@ -1789,3 +1789,3 @@ * | ||
} | ||
return Math.min(numFrames, this.leftChannel.length - position); | ||
return numFrames; | ||
} | ||
@@ -1874,3 +1874,3 @@ }]); | ||
var left = outputs[0][0]; | ||
var right = outputs[0][1]; | ||
var right = outputs[0].length > 1 ? outputs[0][1] : outputs[0][0]; | ||
var samples = this._samples; | ||
@@ -1881,3 +1881,3 @@ if (!left || left && !left.length) { | ||
var framesExtracted = this._filter.extract(samples, inputs[0][0].length); | ||
if (!framesExtracted) { | ||
if (isNaN(samples[0]) || !framesExtracted) { | ||
this._sendMessage('PROCESSOR_END'); | ||
@@ -1891,2 +1891,6 @@ return false; | ||
right[i] = samples[i * 2 + 1]; | ||
if (isNaN(left[i]) || isNaN(right[i])) { | ||
left[i] = 0; | ||
right[i] = 0; | ||
} | ||
} | ||
@@ -1893,0 +1897,0 @@ return true; |
{ | ||
"name": "@soundtouchjs/audio-worklet", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "An ES2015+ AudioWorklet implementation of the SoundTouchJS library", | ||
@@ -5,0 +5,0 @@ "module": "dist/soundtouch-audio-node.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
148784
2350