RangeError [ERR_OUT_OF_RANGE]: The value of "sourceEnd" is out of range. It must be >= 0 && <= 3. Received 8
at validateOffset (node:buffer:113:3)
at Buffer.compare (node:buffer:895:5)
at Decoder._transform (/Users/tony/Projects/aoede-bot/node_modules/prism-media/src/opus/Decoder.ts:23:13)
...
I get the aforementioned error when working with opus.Decoder from prism-media version 2.0.0-alpha.0. It originates there at chunk.compare call. I guess it is because of a small chunk with a length of 3. Any ideas how to fix?
Issue:
I get the aforementioned error when working with opus.Decoder from prism-media version 2.0.0-alpha.0. It originates there at
chunk.compare
call. I guess it is because of a small chunk with a length of 3. Any ideas how to fix?Steps to reproduce:
Further details: