Mercurial > hg > svcore
comparison data/model/Model.h @ 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 |
---|---|
119 * | 119 * |
120 * If "completion" is non-NULL, this function should return | 120 * If "completion" is non-NULL, this function should return |
121 * through it an estimated percentage value showing how far | 121 * through it an estimated percentage value showing how far |
122 * through the background operation it thinks it is (for progress | 122 * through the background operation it thinks it is (for progress |
123 * reporting). If it has no way to calculate progress, it may | 123 * reporting). If it has no way to calculate progress, it may |
124 * return the special value COMPLETION_UNKNOWN. | 124 * return the special value COMPLETION_UNKNOWN. See also |
125 * getCompletion(). | |
125 */ | 126 */ |
126 virtual bool isReady(int *completion = 0) const { | 127 virtual bool isReady(int *completion = 0) const { |
127 bool ok = isOK(); | 128 bool ok = isOK(); |
128 if (completion) *completion = (ok ? 100 : 0); | 129 if (completion) *completion = (ok ? 100 : 0); |
129 return ok; | 130 return ok; |