Closed grazder closed 1 year ago
Thanks a lot for the report, fixed in https://github.com/padenot/ringbuf.js/commit/0a15bf3b85679e7bcfb8c9a1d561ab49dad820e0, with a test in the following commit.
And released a new minor version (with a bunch of deps updated).
cool, thanks!
it looks like here should be
input.length / 128
?https://github.com/padenot/ringbuf.js/blob/329137af8d6ba4e8bdbb79e99ded6ffa64c2c719/js/audioqueue.js#L13
For example, we've got simple stereo input - 2 * 128 frames and we want to get in output 2 arrays of 128
here is example like i understood it
output:
And if i provide output with
length = 1
It turns out that we are losing the last 128 floats.and how i suggest
output:
Correct me please if i didn't understand the logic