Mercurial > hg > svcore
diff data/model/FFTModel.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 | 5cbf71022679 |
children | e94719f941ba aa588c391d1a |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Mon Oct 12 15:06:15 2015 +0100 +++ b/data/model/FFTModel.cpp Tue Oct 13 14:26:40 2015 +0100 @@ -51,6 +51,10 @@ << ") must be at least FFT size (" << m_fftSize << ")" << endl; throw invalid_argument("FFTModel window size must be at least FFT size"); } + + connect(model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); + connect(model, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)), + this, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t))); } FFTModel::~FFTModel()