| 224 | } |
| 225 | |
| 226 | bool |
| 227 | ExportSamplesTask::openMatlab(void) |
| 228 | { |
| 229 | this->of = std::ofstream(path.toStdString().c_str(), std::ofstream::binary); |
| 230 | |
| 231 | if (!of.is_open()) { |
| 232 | this->lastError = |
| 233 | "Cannot open " |
| 234 | + this->path |
| 235 | + ": " |
| 236 | + QString(strerror(errno)); |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | return true; |
| 241 | } |
| 242 | |
| 243 | bool |
| 244 | ExportSamplesTask::openWav(void) |