70/74-byte UDP packets
Hey there, I was wondering if the voice package is sending 74 byte UDP packets or 70 byte UDP packets? Discord says that they are deprecating sending 70-byte voice packet in replacement for 74 byte UDP packets and so I was wondering which type the package sends currently.
7 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
74
Great, thanks!
I was just a little tripped up by this line:
https://github.com/discordjs/discord.js/blob/dc142c47e4021d6d37712453cc2fad6e4fe4e9f7/packages/voice/src/networking/VoiceUDPSocket.ts#L209
GitHub
discord.js/VoiceUDPSocket.ts at dc142c47e4021d6d37712453cc2fad6e4fe...
A powerful JavaScript library for interacting with the Discord API - discord.js/VoiceUDPSocket.ts at dc142c47e4021d6d37712453cc2fad6e4fe4e9f7 · discordjs/discord.js
But I see the alloc is 74 so I think it should be fine
Unless that value was also supposed to be changed and was forgotten about 🤷♂️
that 70 is the value being written, not the number of bytes
Okay great, thanks for clarifying