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

Function formatAudioBuffer

src/gui/NetworkDiagnosticsDialog.cpp:2173–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2171}
2172
2173static QString formatAudioBuffer(qsizetype bytes, int sampleRate)
2174{
2175 if (sampleRate <= 0) {
2176 return QString("%1 bytes").arg(bytes);
2177 }
2178
2179 const double ms = audioBufferMs(bytes, sampleRate);
2180 return QString("%1 bytes (%2 ms)").arg(bytes).arg(ms, 0, 'f', 1);
2181}
2182
2183static QString formatMsValue(int value)
2184{

Callers 1

refreshMethod · 0.85

Calls 1

audioBufferMsFunction · 0.85

Tested by

no test coverage detected