| 2279 | } |
| 2280 | |
| 2281 | static QString formatAudioStream(const NetworkDiagnosticsSample& sample, |
| 2282 | const QStringList& sliceLabels) |
| 2283 | { |
| 2284 | if (sample.audioStreamCount <= 0) { |
| 2285 | return "Waiting for RX audio"; |
| 2286 | } |
| 2287 | |
| 2288 | const QString streamText = QString("%1 speaker stream%2") |
| 2289 | .arg(sample.audioStreamCount) |
| 2290 | .arg(sample.audioStreamCount == 1 ? "" : "s"); |
| 2291 | return QString("%1 carrying %2, %3") |
| 2292 | .arg(streamText, |
| 2293 | formatSliceMix(sliceLabels), |
| 2294 | formatAudioCodec(sample.audioPacketClassCode)); |
| 2295 | } |
| 2296 | |
| 2297 | static QString formatAudioSupportDetails(int streamCount, const QStringList& sliceLabels) |
| 2298 | { |
no test coverage detected