# HG changeset patch # User Chris Cannam # Date 1483531514 0 # Node ID dc56e8a13e4446ad12afbdb9d33c73325f757f4d # Parent 47768571681e9ef5a14dbfd066b7a1510580c53e Close wave file writer when recording stops (instead of leaving record file unclosed until the model is deleted) diff -r 47768571681e -r dc56e8a13e44 data/model/WritableWaveFileModel.cpp --- a/data/model/WritableWaveFileModel.cpp Tue Jan 03 13:04:47 2017 +0000 +++ b/data/model/WritableWaveFileModel.cpp Wed Jan 04 12:05:14 2017 +0000 @@ -176,6 +176,7 @@ void WritableWaveFileModel::writeComplete() { + m_writer->close(); if (m_reader) m_reader->updateDone(); m_proportion = 100; emit modelChanged();