comparison 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
comparison
equal deleted inserted replaced
1131:db946591a391 1133:e994747fb9dd
49 if (m_windowSize > m_fftSize) { 49 if (m_windowSize > m_fftSize) {
50 cerr << "ERROR: FFTModel::FFTModel: window size (" << m_windowSize 50 cerr << "ERROR: FFTModel::FFTModel: window size (" << m_windowSize
51 << ") must be at least FFT size (" << m_fftSize << ")" << endl; 51 << ") must be at least FFT size (" << m_fftSize << ")" << endl;
52 throw invalid_argument("FFTModel window size must be at least FFT size"); 52 throw invalid_argument("FFTModel window size must be at least FFT size");
53 } 53 }
54
55 connect(model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged()));
56 connect(model, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)),
57 this, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)));
54 } 58 }
55 59
56 FFTModel::~FFTModel() 60 FFTModel::~FFTModel()
57 { 61 {
58 } 62 }