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

Function formatSampleRate

src/gui/StripWaveform.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72QString formatSampleRate(int sampleRate)
73{
74 if (sampleRate % 1000 == 0)
75 return QStringLiteral("%1 kHz").arg(sampleRate / 1000);
76 return QStringLiteral("%1 kHz").arg(sampleRate / 1000.0, 0, 'f', 1);
77}
78
79} // namespace
80

Callers 1

paintEventMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected