Mercurial > hg > svcore
comparison transform/RealTimeEffectModelTransformer.cpp @ 1133:e994747fb9dd 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 | 4d9816ba0ebe |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1131:db946591a391 | 1133:e994747fb9dd |
---|---|
280 } | 280 } |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 if (blockFrame == contextStart || completion > prevCompletion) { | 284 if (blockFrame == contextStart || completion > prevCompletion) { |
285 // This setCompletion is probably misusing the completion | |
286 // terminology, just as it was for WritableWaveFileModel | |
285 if (stvm) stvm->setCompletion(completion); | 287 if (stvm) stvm->setCompletion(completion); |
286 if (wwfm) wwfm->setCompletion(completion); | 288 if (wwfm) wwfm->setWriteProportion(completion); |
287 prevCompletion = completion; | 289 prevCompletion = completion; |
288 } | 290 } |
289 | 291 |
290 blockFrame += blockSize; | 292 blockFrame += blockSize; |
291 } | 293 } |
292 | 294 |
293 if (m_abandoned) return; | 295 if (m_abandoned) return; |
294 | 296 |
295 if (stvm) stvm->setCompletion(100); | 297 if (stvm) stvm->setCompletion(100); |
296 if (wwfm) wwfm->setCompletion(100); | 298 if (wwfm) wwfm->writeComplete(); |
297 } | 299 } |
298 | 300 |