Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 434:db0c86c4e5e9 templating
Merge from the default branch
author | Chris Cannam |
---|---|
date | Tue, 17 May 2011 13:33:15 +0100 |
parents | ee927c1b7941 5f22e0bbe4ba |
children | 586eb6764a2b |
comparison
equal
deleted
inserted
replaced
431:ee927c1b7941 | 434:db0c86c4e5e9 |
---|---|
2414 break; | 2414 break; |
2415 } | 2415 } |
2416 | 2416 |
2417 WavFileWriter subwriter(subpath, | 2417 WavFileWriter subwriter(subpath, |
2418 model->getSampleRate(), | 2418 model->getSampleRate(), |
2419 model->getChannelCount()); | 2419 model->getChannelCount(), |
2420 WavFileWriter::WriteToTemporary); | |
2420 subwriter.writeModel(model, &subms); | 2421 subwriter.writeModel(model, &subms); |
2421 ok = subwriter.isOK(); | 2422 ok = subwriter.isOK(); |
2422 | 2423 |
2423 if (!ok) { | 2424 if (!ok) { |
2424 error = subwriter.getError(); | 2425 error = subwriter.getError(); |
2429 } | 2430 } |
2430 | 2431 |
2431 if (!multiple) { | 2432 if (!multiple) { |
2432 WavFileWriter writer(path, | 2433 WavFileWriter writer(path, |
2433 model->getSampleRate(), | 2434 model->getSampleRate(), |
2434 model->getChannelCount()); | 2435 model->getChannelCount(), |
2436 WavFileWriter::WriteToTemporary); | |
2435 writer.writeModel(model, selectionToWrite); | 2437 writer.writeModel(model, selectionToWrite); |
2436 ok = writer.isOK(); | 2438 ok = writer.isOK(); |
2437 error = writer.getError(); | 2439 error = writer.getError(); |
2438 } | 2440 } |
2439 | 2441 |