This repository was archived by the owner on Jul 2, 2024. It is now read-only.
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
VoiceData not being parsed correctly? #7
Open
Description
Looking at the hex dumps of the data
portion of VoiceData
packets, it seems that they're not being parsed properly (as portions of obviously not voice data are showing up).
Relevant excerpt from the hexdump of a VoiceData
packet:
000000f0 33 04 00 04 a1 01 00 00 09 00 00 00 2d 62 61 63 |3...........-bac|
00000100 6b 20 20 20 00 04 a1 01 00 00 0a 00 00 00 20 2b |k .......... +|
00000110 66 6f 72 77 61 72 64 00 04 a1 01 00 00 20 00 00 |forward...... ..|
00000120 00 20 61 6c 69 61 73 20 6e 6d 6f 76 5f 72 65 66 |. alias nmov_ref|
00000130 6f 72 77 61 72 64 20 2b 66 6f 72 77 61 72 64 20 |orward +forward |
00000140 00 05 a2 01 00 00 8d 05 00 00 16 00 00 00 1b 0b |................|
Code I'm using to grab the data:
for (const packet of analyser.getPackets()) {
if (packet.packetType === "voiceData") {
var buffer = packet.data.readArrayBuffer(packet.length);
fs.writeFileSync(..., buffer);
}
}
Any ideas to wha'ts going on?
Metadata
Metadata
Assignees
Labels
No labels