Closed xpollen8 closed 6 years ago
I appreciate the pull request, but I kinda cringe at a band-aid because I'm afraid it will hide the issue and there will be silent failures. Instead of committing these changes, I'll make a priority on getting this bit of code solid so it will not overrun/ underrun the buffer.
If it helps... Overflow situations were occurring when audioData.length is very small: 4, 8, 16.
Thanks, that's very helpful. I suspected that might be the case.
I thought I'd get to a fix sooner than I have. Accepting this pull request because it's definitely an improvement over what is there now. Thank you for posting it, and sorry about taking so long.
I was observing both under and overflow of audioData array bounds, so this is more band-aid than anything.