.play() throws error - Cannot read property 'length' of undefined - RingBuffer.push()
See original GitHub issue/** [p5.sound] Version: 0.3.12 - 2020-01-06 */
A new problem arose yesterday or the day before. I’ve been using the same code for a couple of weeks with no problems.
If you call .play() after .loadSound(), the following error/stack is thrown:
730ccbef-3078-419b-80e3-0b3b03baca05:75 Uncaught TypeError: Cannot read property 'length' of undefined at RingBuffer.push (730ccbef-3078-419b-80e3-0b3b03baca05:75) at AudioWorkletProcessor.process (730ccbef-3078-419b-80e3-0b3b03baca05:170) push @ 730ccbef-3078-419b-80e3-0b3b03baca05:75 process @ 730ccbef-3078-419b-80e3-0b3b03baca05:170
This can be observed on the official p5js.org website here: https://p5js.org/reference/#/p5.EQ
Click on the ‘lows’ button to throw the error
I’ve tested this on multiple browsers with the same error. Currently I’m testing on Chrome (Version 84.0.4147.105 (Official Build) (64-bit)).
I’ve never submitted before, so I don’t know if I’m reporting this properly, or if this is already known/tracked.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:26 (4 by maintainers)
Top GitHub Comments
I’m still having this issue, as well as cracking sounds in version 1.3.1 as well! Hope for a fix soon!
I dont know why this issue is closed because it is not fixed.
This issue should not be closed, as the issue still occurs.