| 1056 | } |
| 1057 | |
| 1058 | void |
| 1059 | FFTWidget::onRefreshRateChanged(void) |
| 1060 | { |
| 1061 | auto params = m_mediator->getAnalyzerParams(); |
| 1062 | |
| 1063 | this->refreshRate = |
| 1064 | this->refreshRates[ |
| 1065 | SCAST(unsigned, this->ui->rateCombo->currentIndex())]; |
| 1066 | |
| 1067 | if (this->refreshRate == 0) |
| 1068 | this->refreshRate = this->defaultRefreshRate; |
| 1069 | |
| 1070 | params->psdUpdateInterval = 1.f / this->getRefreshRate(); |
| 1071 | |
| 1072 | m_spectrum->setExpectedRate(this->getRefreshRate()); |
| 1073 | |
| 1074 | this->updateAnalyzerParams(); |
| 1075 | } |
| 1076 | |
| 1077 | void |
| 1078 | FFTWidget::onTimeSpanChanged(void) |
nothing calls this directly
no test coverage detected