Mercurial > hg > svcore
changeset 1336:dc56e8a13e44 3.0-integration
Close wave file writer when recording stops (instead of leaving record file unclosed until the model is deleted)
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 12:05:14 +0000 |
parents | 47768571681e |
children | 3dcd83595bc8 |
files | data/model/WritableWaveFileModel.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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();