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

Method feed

Components/MainSpectrum.cpp:213–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void
214MainSpectrum::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
233void
234MainSpectrum::updateLimits(void)

Callers 3

feedSetMethod · 0.45
onHoverTimeMethod · 0.45
onHistogramSamplesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected