# HG changeset patch # User Chris Cannam # Date 1305108310 -3600 # Node ID 5f22e0bbe4ba254dfb2d2c262d0539b174694457 # Parent aa8117d79702e2d580c83cfa9d687565c72f6c72 Use new write mode option for WavFileWriter diff -r aa8117d79702 -r 5f22e0bbe4ba main/MainWindow.cpp --- a/main/MainWindow.cpp Thu Apr 14 12:13:06 2011 +0100 +++ b/main/MainWindow.cpp Wed May 11 11:05:10 2011 +0100 @@ -2306,7 +2306,8 @@ WavFileWriter subwriter(subpath, model->getSampleRate(), - model->getChannelCount()); + model->getChannelCount(), + WavFileWriter::WriteToTemporary); subwriter.writeModel(model, &subms); ok = subwriter.isOK(); @@ -2321,7 +2322,8 @@ if (!multiple) { WavFileWriter writer(path, model->getSampleRate(), - model->getChannelCount()); + model->getChannelCount(), + WavFileWriter::WriteToTemporary); writer.writeModel(model, selectionToWrite); ok = writer.isOK(); error = writer.getError(); diff -r aa8117d79702 -r 5f22e0bbe4ba main/OSCHandler.cpp --- a/main/OSCHandler.cpp Thu Apr 14 12:13:06 2011 +0100 +++ b/main/OSCHandler.cpp Wed May 11 11:05:10 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);