| 211 | } |
| 212 | |
| 213 | void |
| 214 | MainSpectrum::feed(float *data, int size, struct timeval const &tv, bool looped) |
| 215 | { |
| 216 | QDateTime dateTime; |
| 217 | |
| 218 | dateTime.setMSecsSinceEpoch(tv.tv_sec * 1000 + tv.tv_usec / 1000); |
| 219 | |
| 220 | WATERFALL_CALL(setNewFftData(data, size, dateTime, looped)); |
| 221 | |
| 222 | if (!this->resAdjusted) { |
| 223 | this->resAdjusted = true; |
| 224 | int res = static_cast<int>( |
| 225 | round(static_cast<qreal>(this->cachedRate) / size)); |
| 226 | if (res < 1) |
| 227 | res = 1; |
| 228 | WATERFALL_CALL(setClickResolution(res)); |
| 229 | WATERFALL_CALL(setFilterClickResolution(res)); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | void |
| 234 | MainSpectrum::updateLimits(void) |
no outgoing calls
no test coverage detected