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

Method ExportSamplesTask

Tasks/ExportSamplesTask.cpp:318–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318ExportSamplesTask::ExportSamplesTask(
319 QString const &path,
320 QString const &format,
321 const SUCOMPLEX *data,
322 size_t length,
323 qreal fs,
324 int start,
325 int end)
326{
327 if (start < 0)
328 start = 0;
329 if (end > static_cast<int>(length))
330 end = static_cast<int>(length);
331
332 this->start = start;
333 this->end = end;
334 this->fs = fs;
335 this->path = path;
336 this->format = format;
337
338 this->data.resize(static_cast<unsigned>(end - start));
339 this->data.assign(data + start, data + end);
340 this->setDataSize(this->data.size());
341}

Callers

nothing calls this directly

Calls 2

setDataSizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected