Rename the TX `resampling_active` diagnostics key now that its value changed meaning

Open
#5,012 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp

Research direction

Start at AudioEngine::audioEndpointDiagnostics() and txAudioResamplingRoute(), then read docs/architecture/audio-pipeline.md and the review context in PR #4875. Resolve whether the legacy key is renamed or retired, coordinate with support-bundle parsers, and verify diagnostics consumers use the new meaning without an ambiguous cross-version diff.

Written by the indexing model from the issue text.

Description

audio awaiting-response bug

Follow-up from PR #4875 (48 kHz TX voice refactor). Raised by @jensenpat in review; we merged without doing it and committed in the review dismissal to doing it if still wanted, so this issue exists to make that commitment visible rather than lost.

The problem

AudioEngine::audioEndpointDiagnostics() emits resampling_active under the same JSON key it has always used, but the value it reports changed with #4875:

Mic capture rate Before #4875 After #4875
48 kHz true true
24 kHz false true

Before, the key meant "the TX path resamples the capture rate to 24 kHz" (m_txNeedsResample = rate != 24000). Now the normal voice route always performs a 48 → 24 kHz egress SRC, so txAudioResamplingRoute() returns active = true unconditionally for voice.

The new value is correct — the SRC genuinely runs — and the behaviour is documented under "TX rate diagnostics" in docs/architecture/audio-pipeline.md. #4875 also added three unambiguous sibling keys (voice_input_normalizing_to_48k, voice_egress_resampling_to_24k, rade_resampling_to_24k).

The residual concern is real regardless: a support-bundle diff across versions will show the value flip under an unchanged key, and anyone comparing bundles from before and after #4875 can misread it as a behaviour regression on 24 kHz mics. DeviceDiagnostics renamed its sibling key for exactly this reason; this one did not.

Suggested fix

Rename to something that states the new meaning (e.g. tx_route_resampling_active), or retire it in favour of the three explicit siblings that now carry the detail.

Either way, coordinate with whatever parses support bundles.

Original review thread: https://github.com/aethersdr/AetherSDR/pull/4875

Dominant language
C++
Stars
221
Forks
117
Avg merge
2d 7h
Merged PRs (30d)
299

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aethersdr/AetherSDR

All issues in aethersdr/AetherSDR

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.