| 316 | } |
| 317 | |
| 318 | ExportSamplesTask::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 | } |
nothing calls this directly
no test coverage detected