Scale Opus bitrate to audio frame duration

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 14:36:00 -04:00
committed by Brandon McGinty
parent 2bdf9a8193
commit aa38c99aab
3 changed files with 32 additions and 9 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ Priority 2: protocol and data correctness
terminators, positional data, and volume adjustment. Test real UDP
fallback behavior too.
22. Opus bitrate calculation assumes a 10 ms interval
[x] 22. Opus bitrate calculation assumes a 10 ms interval
File: gumble/opus/opus.go
bitrate is maxDataBytes * 8 * 100. For permitted 20/40/60 ms intervals it
is 2x/4x/6x too high. Calculate bits per frame divided by the actual