comparison data/model/WritableWaveFileModel.cpp @ 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 54af1e21705c
children 3dcd83595bc8
comparison
equal deleted inserted replaced
1335:47768571681e 1336:dc56e8a13e44
174 } 174 }
175 175
176 void 176 void
177 WritableWaveFileModel::writeComplete() 177 WritableWaveFileModel::writeComplete()
178 { 178 {
179 m_writer->close();
179 if (m_reader) m_reader->updateDone(); 180 if (m_reader) m_reader->updateDone();
180 m_proportion = 100; 181 m_proportion = 100;
181 emit modelChanged(); 182 emit modelChanged();
182 } 183 }
183 184