summaryrefslogtreecommitdiffstats
path: root/PICA_proto.h
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-12 22:52:20 +0400
committerAnton <anton@picapica.im>2026-08-12 22:52:20 +0400
commit9c5a67f89a6f90080e171fb6c7bb0964bd9e69f3 (patch)
treefdfac4241af1508608eb40ef60d2c3daf86a897f /PICA_proto.h
parent386f189f03fc199285716d78a059b790bd1b9a6b (diff)
downloadpica-pica-9c5a67f89a6f90080e171fb6c7bb0964bd9e69f3.tar.gz
pica-pica-9c5a67f89a6f90080e171fb6c7bb0964bd9e69f3.zip
pica-client: voice calls
Diffstat (limited to 'PICA_proto.h')
-rw-r--r--PICA_proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/PICA_proto.h b/PICA_proto.h
index b7a5e5d..78a5c7a 100644
--- a/PICA_proto.h
+++ b/PICA_proto.h
@@ -166,6 +166,13 @@
#define PICA_PROTO_CALL_CODECNAMESIZE 20
+// Sequence number (2 octets) + capture timestamp in milliseconds (4
+// octets), little-endian, prepended to the payload in the 0x76/0x77 packet
+// tail, ahead of the codec data.
+#define PICA_PROTO_CALL_PACKET_SEQNUM_SIZE 2
+#define PICA_PROTO_CALL_PACKET_TIMESTAMP_SIZE 4
+#define PICA_PROTO_CALL_PACKET_HDRSIZE (PICA_PROTO_CALL_PACKET_SEQNUM_SIZE + PICA_PROTO_CALL_PACKET_TIMESTAMP_SIZE)
+
struct PICA_proto_msg
{
unsigned char head[2];