Commit Graph
2 Commits
Author SHA1 Message Date
Brandon McGinty (chatgpt) 7d7d59649b Harden UDP audio transport and logging 2026-08-09 13:14:48 -04:00
Brandon McGinty (deepseek) e483512f74 feat: add structured logging throughout audio pipeline
Add a lightweight log package (log/log.go) with debug/info/warn/error
levels. Wire it up via a -log flag (default: warn). Logging covers:

UDP transport:
- Socket open/failure, CryptSetup receipt, crypto initialization
- First UDP audio send confirmation
- UDP read errors and packet counts
- TCP fallback reason (no socket, waiting for crypto)

Audio pipeline:
- Source (mic) routine start with config details
- Audio stream start/end per remote user
- First audio stream creation for each user
- Packet loss detection with sequence gaps and PLC generation
- Decoder reset on sequence reordering

Usage: barnard -log=debug -server=mumble.example.com
Levels: debug, info, warn, error
2026-08-08 22:19:42 -04:00