olvb / phaze

Real-time pitch-shifter as a Web Audio worklet, based on phase vocoder techniques
The Unlicense
134 stars 17 forks source link

Fix input buffer handling in `ola-processor.js` #6

Closed padenot closed 3 years ago

padenot commented 3 years ago

input[0][0] will only be non-undefined if the source node is actively processing (spec text, second paragraph of the section on the input parameter). When the source is a media element, there can be a short delay until the first buffers are available.

olvb commented 3 years ago

Thanks!