MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / refreshTrueSampleRate

Method refreshTrueSampleRate

Settings/ProfileConfigTab.cpp:271–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void
272ProfileConfigTab::refreshTrueSampleRate(void)
273{
274 float step = SU_POW(10., SU_FLOOR(SU_LOG(this->profile.getSampleRate())));
275 QString rateText;
276 qreal trueRate = static_cast<qreal>(this->getSelectedSampleRate())
277 / this->ui->decimationSpin->value();
278 if (step >= 10.f)
279 step /= 10.f;
280
281 this->ui->trueRateLabel->setText(getSampRateString(trueRate));
282}
283
284void
285ProfileConfigTab::refreshAnalyzerTypeUi(void)

Callers 3

refreshUiStateMethod · 0.95
refreshProfileUiMethod · 0.95
onSpinsChangedMethod · 0.95

Calls 3

getSelectedSampleRateMethod · 0.95
valueMethod · 0.80
getSampleRateMethod · 0.45

Tested by

no test coverage detected