| 5705 | } |
| 5706 | |
| 5707 | void 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 |
nothing calls this directly
no test coverage detected