#Cannot create a Buffer larger then 0x10... Bytes (Discordjs opus encoder)

6 messages · Page 1 of 1 (latest)

wicked wagon
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

#

Buffer: Attached in txt
Code: Attached in picture
Error: Attached in picture

INFO:
Buffer length = 5120
Buffer bytesize = 5120
Buffer bytes per element = 1
(grabbed using the nodejs methods)

Discord.js version: v14.7.1
NodeJS version: v18.12.1

#

I appreciate any help

tawdry pendant
#

slice the buffer based on byte size and encode the packets separately

wicked wagon
#

the byte size is 5120

#

also its something to do with reading the buffer directly