Mercurial > hg > svapp
comparison audio/AudioRecordTarget.cpp @ 497:d1c70c680fa9 tony-2.0-integration
Adjust model update during recording or writing a new wave file. Formerly we were using the model's completion percentage to indicate write proportion and completion -- that's not a good idea because some layers will reasonably avoid rendering at all until a model reaches 100% completion (it's supposed to report only progress on the initial model generation, and the model shouldn't change during completion updates).
author | Chris Cannam |
---|---|
date | Tue, 13 Oct 2015 14:26:40 +0100 |
parents | 2f5ffd36879b |
children | c82cae9a9e74 |
comparison
equal
deleted
inserted
replaced
496:4f1d280903ad | 497:d1c70c680fa9 |
---|---|
162 if (!m_recording) { | 162 if (!m_recording) { |
163 cerr << "WARNING: AudioRecordTarget::startRecording: Not recording" << endl; | 163 cerr << "WARNING: AudioRecordTarget::startRecording: Not recording" << endl; |
164 return; | 164 return; |
165 } | 165 } |
166 | 166 |
167 m_model->setCompletion(100); | 167 m_model->writeComplete(); |
168 m_model = 0; | 168 m_model = 0; |
169 m_recording = false; | 169 m_recording = false; |
170 } | 170 } |
171 | 171 |
172 emit recordStatusChanged(false); | 172 emit recordStatusChanged(false); |
173 emit recordCompleted(); | |
173 } | 174 } |
174 | 175 |
175 | 176 |