MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / logTxInputChannelDiagnostics

Method logTxInputChannelDiagnostics

src/core/AudioEngine.cpp:5707–5734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5705}
5706
5707void AudioEngine::logTxInputChannelDiagnostics(const TxMicChannelNormalizer::Diagnostics& diagnostics,
5708 const char* route)
5709{
5710 if (!diagnostics.oneSidedStereo) {
5711 return;
5712 }
5713
5714 QElapsedTimer& throttle = (route && std::strcmp(route, "DAX radio") == 0)
5715 ? m_lastDaxRadioChannelLog
5716 : m_lastTxMicChannelLog;
5717 if (throttle.isValid() && throttle.elapsed() < 1000) {
5718 return;
5719 }
5720
5721 if (throttle.isValid())
5722 throttle.restart();
5723 else
5724 throttle.start();
5725
5726 qCDebug(lcAudio) << "AudioEngine:" << (route ? route : "TX mic")
5727 << "one-sided stereo input"
5728 << "leftRmsDbfs:" << TxMicChannelNormalizer::dbfs(diagnostics.leftRms)
5729 << "rightRmsDbfs:" << TxMicChannelNormalizer::dbfs(diagnostics.rightRms)
5730 << "leftPeakDbfs:" << TxMicChannelNormalizer::dbfs(diagnostics.leftPeak)
5731 << "rightPeakDbfs:" << TxMicChannelNormalizer::dbfs(diagnostics.rightPeak)
5732 << "selected:"
5733 << TxMicChannelNormalizer::channelModeName(diagnostics.selectedMode);
5734}
5735
5736// ─── TX stream ────────────────────────────────────────────────────────────────
5737

Callers

nothing calls this directly

Calls 4

dbfsFunction · 0.85
channelModeNameFunction · 0.85
isValidMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected