doc/proto.texi | 6 ++---- internal/audio.go | 2 +- diff --git a/doc/proto.texi b/doc/proto.texi index ead9defe774257d82ee8bf191e9c75d169ffc8181a70aa0ec57bd0892a464b81..a8d9b3d6f6955018e0a59a2084321e3cc3da8d95e8cf63c332ff26dd585ac6b3 100644 --- a/doc/proto.texi +++ b/doc/proto.texi @@ -15,10 +15,8 @@ handshake procedure with the server and is shared among other participants. Stream identifier with packet counter are used as a nonce. Only 64-bits of Poly1305 are used. -It is tuned for 32Kbps bandwidth. 24Kbps should be enough, but 40B of -IPv6 header, +8B of Poly1305 authentication tag, +4B of stream -identifier with the counter, +8B of UDP header for 50pps means also -24Kbps of bandwidth only for overhead transmission. +It is tuned for 24Kbps bandwidth. But remember that it has additional 8B +of MAC tag, 4B VoRS, 8B UDP and 40B IPv6 headers. Each client handshakes with the server over TCP connection using @url{http://noiseprotocol.org/, Noise}-NK protocol pattern with diff --git a/internal/audio.go b/internal/audio.go index bc5f725be05a85ff3dbc2504d1c6b1b59741e5f4dab5d3fbbb5092cc76c7e1c4..fc0a266f1f5fccb2d10dbc52c976fa75b8fb53dc3e3f3fcbcff7aabea3961fda 100644 --- a/internal/audio.go +++ b/internal/audio.go @@ -3,7 +3,7 @@ const ( Rate = 48000 FrameMs = 20 - Bitrate = 32000 + Bitrate = 24000 FrameLen = FrameMs * Rate / 1000 MaxLost = 32 )