changeset 434:db0c86c4e5e9 templating

Merge from the default branch
author Chris Cannam
date Tue, 17 May 2011 13:33:15 +0100
parents ee927c1b7941 (current diff) 5f22e0bbe4ba (diff)
children 586eb6764a2b
files main/MainWindow.cpp
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed May 11 14:41:27 2011 +0100
+++ b/main/MainWindow.cpp	Tue May 17 13:33:15 2011 +0100
@@ -2416,7 +2416,8 @@
 
 		WavFileWriter subwriter(subpath,
                                         model->getSampleRate(),
-                                        model->getChannelCount());
+                                        model->getChannelCount(),
+                                        WavFileWriter::WriteToTemporary);
                 subwriter.writeModel(model, &subms);
 		ok = subwriter.isOK();
 
@@ -2431,7 +2432,8 @@
     if (!multiple) {
         WavFileWriter writer(path,
                              model->getSampleRate(),
-                             model->getChannelCount());
+                             model->getChannelCount(),
+                             WavFileWriter::WriteToTemporary);
         writer.writeModel(model, selectionToWrite);
 	ok = writer.isOK();
 	error = writer.getError();
--- a/main/OSCHandler.cpp	Wed May 11 14:41:27 2011 +0100
+++ b/main/OSCHandler.cpp	Tue May 17 13:33:15 2011 +0100
@@ -106,7 +106,8 @@
                 } else {
                     WavFileWriter writer(path,
                                          getMainModel()->getSampleRate(),
-                                         getMainModel()->getChannelCount());
+                                         getMainModel()->getChannelCount(),
+                                         WavFileWriter::WriteToTemporary);
                     MultiSelection ms = m_viewManager->getSelection();
                     if (!ms.getSelections().empty()) {
                         writer.writeModel(getMainModel(), &ms);