Commit Graph
3 Commits
Author SHA1 Message Date
Brandon McGinty (chatgpt) 655a109ce8 Create tone-test outputs exclusively 2026-08-10 11:25:08 -04:00
Brandon McGinty (chatgpt) bad4e8172a Detach tone-test savers on reconnect 2026-08-09 23:12:56 -04:00
Brandon McGinty (deepseek) 29be821155 Add --tone-test mode: 440 Hz Opus tone + incoming audio capture
Adds a --tone-test flag that bypasses all OpenAL/soundcard
initialization and instead:

- Generates a 440 Hz sine wave at 48kHz mono, encodes it via Opus,
  and sends it to the Mumble server.

- Saves all incoming decoded audio to a raw PCM file (s16le,
  stereo, 48kHz) specified by --tone-out (default: incoming.pcm).

Useful for end-to-end testing of the Opus encode/decode pipeline
and Mumble transport without requiring physical audio hardware.

Usage:
  barnard --server HOST --tone-test --tone-out /tmp/in.pcm

  ffplay -f s16le -ar 48000 -ac 2 incoming.pcm
2026-08-09 00:19:41 -04:00