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

Function formatAudioStream

src/gui/NetworkDiagnosticsDialog.cpp:2281–2295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2279}
2280
2281static 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
2297static QString formatAudioSupportDetails(int streamCount, const QStringList& sliceLabels)
2298{

Callers 1

refreshMethod · 0.85

Calls 2

formatSliceMixFunction · 0.85
formatAudioCodecFunction · 0.85

Tested by

no test coverage detected