Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aethersdr/AetherSDR
/ formatSampleRate
Function
formatSampleRate
src/gui/WaveformWidget.cpp:69–74 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
67
}
68
69
QString formatSampleRate(int sampleRate)
70
{
71
if (sampleRate % 1000 == 0)
72
return QStringLiteral(
"%1 kHz"
).arg(sampleRate / 1000);
73
return QStringLiteral(
"%1 kHz"
).arg(sampleRate / 1000.0, 0,
'f'
, 1);
74
}
75
76
} // namespace
77
Callers
1
paintEvent
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected